Uses of Class
dev.langchain4j.guardrails.DecisionModelInputGuardrail.Builder
Packages that use DecisionModelInputGuardrail.Builder
-
Uses of DecisionModelInputGuardrail.Builder in dev.langchain4j.guardrails
Methods in dev.langchain4j.guardrails that return DecisionModelInputGuardrail.BuilderModifier and TypeMethodDescriptionDecisionModelInputGuardrail.builder()Adds a check.Adds a check with its own threshold, which overrides the threshold of the guardrail (seeDecisionModelInputGuardrail.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.DecisionModelInputGuardrail.Builder.decisionModel(DecisionModel decisionModel) Sets the decision model that answers the checks.Sets the probability of "yes" from which a check fails, for the checks without their own threshold (seeDecisionModelInputGuardrail.Builder.check(String, String, Double)).Constructors in dev.langchain4j.guardrails with parameters of type DecisionModelInputGuardrail.BuilderModifierConstructorDescriptionprotected