Classifier

A decision model that answers typed questions with probability distributions.

Unlike a Model, a classifier does not generate text, stream, or call tools. Implementations are stateless and safe for concurrent calls; context from earlier turns must be included in ClassifierRequest.input.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

The provider's model name, such as "jev-latest" or "gemini-3.8-flash".

Functions

Link copied to clipboard
abstract suspend fun classify(request: ClassifierRequest): ClassifierResponse

Answers every question in request against its input and returns one Answer per question ID.