Package org.springframework.ai.decision
Class DecisionResult
java.lang.Object
org.springframework.ai.decision.DecisionResult
- All Implemented Interfaces:
ModelResult<DecisionAnswer>
The answer to one question of a
DecisionPrompt, named after the question.
Results are created by DecisionResponse.Builder, which puts them in the order
of the prompt's questions.- Since:
- 2.1.0
- Author:
- Thomas Vitale
-
Method Details
-
getName
The name of the question this result answers. -
getOutput
Description copied from interface:ModelResultRetrieves the output generated by the AI model.- Specified by:
getOutputin interfaceModelResult<DecisionAnswer>- Returns:
- the output generated by the AI model
-
getMetadata
Description copied from interface:ModelResultRetrieves the metadata associated with the result of an AI model.- Specified by:
getMetadatain interfaceModelResult<DecisionAnswer>- Returns:
- the metadata associated with the result
-
equals
-
hashCode
public int hashCode() -
toString
-