Class JudgeResponse.Builder
java.lang.Object
dev.langchain4j.test.judge.JudgeResponse.Builder
- Enclosing class:
JudgeResponse
Builder for
JudgeResponse.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the response.tokenUsage(TokenUsage tokenUsage) Sets the tokens used by the judge model.verdicts(List<JudgeVerdict> verdicts) Sets the verdicts: one per criterion, in the order of the criteria.
-
Method Details
-
verdicts
Sets the verdicts: one per criterion, in the order of the criteria. Required. -
tokenUsage
Sets the tokens used by the judge model. Optional. -
build
Builds the response.- Throws:
IllegalArgumentException- if the verdicts are not set or containnull
-