Package org.springframework.ai.decision.answer
@NullMarked
package org.springframework.ai.decision.answer
Provides the answers a decision model gives.
-
ClassDescriptionThe answer to a
ChoiceQuestion: the selected option, the probability of each option when the provider reports them, and the provider's confidence when it reports one.The answer aDecisionModelgives to aDecisionQuestion: aYesNoAnswer, aChoiceAnsweror aScoreAnswermatching the kind of the question, or aRefusalAnswerwhen the provider declined to answer it.The answer to a question the provider explicitly declined to answer.The answer to aScoreQuestion: the expected level, as a value between 0 andlevels - 1that weighs each level by its probability, the probability of each level when the provider reports them, and the provider's confidence when it reports one.The answer to aYesNoQuestion: the probability that the answer is yes.