Uses of Class
dev.langchain4j.guardrails.DecisionModelOutputGuardrail.Builder
Packages that use DecisionModelOutputGuardrail.Builder
-
Uses of DecisionModelOutputGuardrail.Builder in dev.langchain4j.guardrails
Methods in dev.langchain4j.guardrails that return DecisionModelOutputGuardrail.BuilderModifier and TypeMethodDescriptionDecisionModelOutputGuardrail.builder()Adds a check.Adds a check with its own threshold, which overrides the threshold of the guardrail (seeDecisionModelOutputGuardrail.Builder.threshold(Double)) for this check: for example, a low threshold for a check that must rarely miss, and a high one for a check that should only reject clear cases.Sets the checks, as yes/no questions keyed by check name, replacing the checks added so far.DecisionModelOutputGuardrail.Builder.decisionModel(DecisionModel decisionModel) Sets the decision model that answers the checks.DecisionModelOutputGuardrail.Builder.maxMessageLength(Integer maxMessageLength) Sets the maximum length, in characters, of the text of each message the decision model receives, other than system messages and the response, and of the arguments of each tool call.DecisionModelOutputGuardrail.Builder.maxMessages(Integer maxMessages) Sets the maximum number of messages of the conversation that the decision model receives in addition to the response: the last messages, plus the last user message if it is older.DecisionModelOutputGuardrail.Builder.messageFilter(Predicate<? super ChatMessage> messageFilter) Sets which messages of the conversation the decision model receives, in addition to the response.Sets the instruction sent to the model when a response is rejected, to ask it for a new response.Sets the probability of "yes" from which a check fails, for the checks without their own threshold (seeDecisionModelOutputGuardrail.Builder.check(String, String, Double)).Constructors in dev.langchain4j.guardrails with parameters of type DecisionModelOutputGuardrail.BuilderModifierConstructorDescriptionprotected