Uses of Class
dev.langchain4j.model.decision.request.YesNoQuestion
Packages that use YesNoQuestion
Package
Description
Model mocks for tests: they need no network, answer the way a test tells them to, and record the requests they
receive.
-
Uses of YesNoQuestion in dev.langchain4j.model.decision.request
Methods in dev.langchain4j.model.decision.request that return YesNoQuestionModifier and TypeMethodDescriptionYesNoQuestion.Builder.build()static YesNoQuestionCreates a yes/no question with the given text.static YesNoQuestionDeprecated, for removal: This API element is subject to removal in a future version. -
Uses of YesNoQuestion in dev.langchain4j.test.judge
Method parameters in dev.langchain4j.test.judge with type arguments of type YesNoQuestionModifier and TypeMethodDescriptionDecisionModelJudge.withQuestion(Function<JudgeCriterion, YesNoQuestion> questions) Returns a judge that asks each criterion with the question returned by the given function, instead of the default question. -
Uses of YesNoQuestion in dev.langchain4j.test.mock
Method parameters in dev.langchain4j.test.mock with type arguments of type YesNoQuestionModifier and TypeMethodDescriptionstatic MockDecisionModelMockDecisionModel.thatAnswersYesNoQuestions(ToDoubleFunction<YesNoQuestion> probability) A model that answers every yes/no question of the first request with the probability of "yes", from 0 to 1, computed from the question.MockDecisionModel.thenAnswersYesNoQuestions(ToDoubleFunction<YesNoQuestion> probability) Adds a step: every yes/no question of the next request is answered with the probability of "yes", from 0 to 1, computed from the question, seeMockDecisionModel.thatAnswersYesNoQuestions(ToDoubleFunction).
YesNoQuestion.from(String)instead