Class ChoiceQuestion.Builder
java.lang.Object
dev.langchain4j.model.decision.request.ChoiceQuestion.Builder
- Enclosing class:
ChoiceQuestion
- Since:
- 1.21.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Adds an option without a description, for an option whose name says it all.Adds an option with a description of when it applies.Replaces all options with the given descriptions, keyed by option name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
text
-
options
Replaces all options with the given descriptions, keyed by option name. Anulldescription adds an option without a description. -
option
Adds an option without a description, for an option whose name says it all. Option names must be unique. -
option
Adds an option with a description of when it applies. Option names must be unique. -
build
-