Class DecisionResponse.Builder
java.lang.Object
dev.langchain4j.model.decision.response.DecisionResponse.Builder
- Enclosing class:
DecisionResponse
- Since:
- 1.21.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanswer(String name, DecisionAnswer answer) Adds the answer to the question with the given name.answers(Map<String, ? extends DecisionAnswer> answers) Replaces all answers.build()metadata(DecisionResponseMetadata metadata) tokenUsage(TokenUsage tokenUsage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
answers
Replaces all answers. -
answer
Adds the answer to the question with the given name. -
metadata
-
modelName
-
tokenUsage
-
build
-