Package org.springframework.ai.decision
Class DecisionPrompt
java.lang.Object
org.springframework.ai.decision.DecisionPrompt
- All Implemented Interfaces:
ModelRequest<DecisionInput>
The request to a
DecisionModel: an input, the named questions to answer about
it, and optional DecisionOptions. The questions keep the order they were added
in, and the answers come back in the same order.- Since:
- 2.1.0
- Author:
- Thomas Vitale, Christian Tzolov
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DecisionPrompt.Builderbuilder()booleanThe input to decide about.@Nullable DecisionOptionsRetrieves the customizable options for AI model interactions.The questions to answer, keyed by name, in the order they were added.inthashCode()mutate()toString()
-
Method Details
-
builder
-
mutate
-
getInstructions
The input to decide about.- Specified by:
getInstructionsin interfaceModelRequest<DecisionInput>- Returns:
- the instructions or input required by the AI model
-
getQuestions
The questions to answer, keyed by name, in the order they were added. -
getOptions
Description copied from interface:ModelRequestRetrieves the customizable options for AI model interactions.- Specified by:
getOptionsin interfaceModelRequest<DecisionInput>- Returns:
- the customizable options for AI model interactions
-
equals
-
hashCode
public int hashCode() -
toString
-