Package org.springframework.ai.decision
@NullMarked
package org.springframework.ai.decision
Provides the decision model API: typed questions answered with probabilities.
-
ClassDescriptionA model that answers typed questions about an input instead of generating text.Portable options for decision models.DecisionOptions.Builder<B extends DecisionOptions.Builder<B>>The request to a
DecisionModel: an input, the named questions to answer about it, and optionalDecisionOptions.The response of aDecisionModel: oneDecisionResultper question, in the order the questions were asked, and the response metadata.Builds aDecisionResponsethat answers aDecisionPrompt.Metadata associated with aDecisionResponse: the response id and the model that answered, when the provider reports them, and the token usage.The answer to one question of aDecisionPrompt, named after the question.Metadata associated with oneDecisionResult.Default implementation ofDecisionOptions.DefaultDecisionOptions.Builder<B extends DefaultDecisionOptions.Builder<B>>Default builder.