Class Choice.Builder
java.lang.Object
org.springframework.ai.systemone.api.question.Choice.Builder
- Enclosing class:
- Choice
Builder for
Choice.-
Method Summary
Modifier and TypeMethodDescriptionbuild()instructions(String instructions) instructions(List<?> instructions) instructions(Map<String, ?> instructions) instructions(JsonContent instructions) Adds an option whose label is its own description.option(String label, JsonContent description) Adds every entry of the given map as an option, preserving its iteration order.
-
Method Details
-
instructions
-
instructions
-
instructions
-
instructions
-
option
Adds an option whose label is its own description.- Parameters:
label- the option label- Returns:
- this builder
-
option
-
option
-
option
-
option
-
options
Adds every entry of the given map as an option, preserving its iteration order.- Parameters:
options- the options to add- Returns:
- this builder
-
build
-