ClassifierRequest

A request to a Classifier to answer one or more typed questions about input.

Constructors

Link copied to clipboard
constructor(input: ClassifierInput, questions: Map<String, Question>)
constructor(text: String, questions: Map<String, Question>)

Creates a request that classifies plain text.

constructor(content: Content, questions: Map<String, Question>)

Creates a request that classifies content.

Types

Link copied to clipboard
class Builder

Fluent builder for ClassifierRequest, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

What the questions are about.

Link copied to clipboard

Maps each caller-chosen question ID to its Question; ClassifierResponse.answers returns one Answer under each of these IDs. Must not be empty.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.