ClassificationRequest

@ApiStatus.Experimental
class ClassificationRequest : DecisionRequest

Text to classify with a ClassificationSpec. A classification request is a decision request whose spec has one choice question, so it goes anywhere a DecisionRequest goes. Its JSON is the decision request JSON. The input may be empty.

Types

Link copied to clipboard
object Companion

Creates classification requests.

Properties

Link copied to clipboard

The categories to choose from, in the spec's order.

Link copied to clipboard

the text the model reasons over. It may be empty when a spec needs no input beyond its questions.

Link copied to clipboard

What the model is asked, from the spec.

Link copied to clipboard
open override val spec: ClassificationSpec

the classification to make

Functions

Link copied to clipboard
operator override fun equals(other: Any?): Boolean
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Shows the spec only. The input is left out because it can be long or hold private text.