Package-level declarations
Types
A Classifier's answer to a Question: ChoiceAnswer, BinaryAnswer, ScoreAnswer, or RefusalAnswer.
Asks a Classifier for the probability that a statement is true.
The answer to a Binary question.
Asks a Classifier to pick one of two or more named labels.
The answer to a Choice question.
A decision model that answers typed questions with probability distributions.
Text or structured data that a Classifier reads, as the input or as a question's instructions or criteria: plain Text, or a JsonObject or JsonArray. It mirrors Python ADK's JSONContent.
The input a Classifier answers questions about: ClassifierContent (text, or a JSON object or array) or multimodal Content parts.
Routes a workflow by asking a classifier one question about the node's input and emitting the answer as the route: the chosen label of a Choice, or true or false for a Binary, decided by threshold. The output is the unchanged input, or the underlying value unwrapped from a ClassifierInput, so the routed-to node receives what the classifier saw.
A request to a Classifier to answer one or more typed questions about input.
The answers produced by a single Classifier.classify call.
Answers typed questions with any Model through structured output: the model is asked for a probability for every option and constrained to a JSON schema built from the questions, so it can only answer with the given labels. The probabilities are the model's stated values rather than token log-probabilities, so check their calibration with evals before relying on a threshold.
A typed question answered by a Classifier: Choice, Binary, or Score. Its instructions and criteria are ClassifierContent: text, or a JSON object or array.
Indicates that a provider declined to produce an answer for a question.
Asks a Classifier to place an input on an ordered rubric starting at level 0.
The answer to a Score question.