Uses of Enum Class
dev.langchain4j.service.guardrail.ToolGuardrailStage
Packages that use ToolGuardrailStage
-
Uses of ToolGuardrailStage in dev.langchain4j.service.guardrail
Subclasses with type arguments of type ToolGuardrailStage in dev.langchain4j.service.guardrailModifier and TypeClassDescriptionenumThe stage of the guardrails of a tool call: the guardrails that run before the tool (input) or after it (output).Methods in dev.langchain4j.service.guardrail that return ToolGuardrailStageModifier and TypeMethodDescriptionstatic ToolGuardrailStageReturns the enum constant of this class with the specified name.static ToolGuardrailStage[]ToolGuardrailStage.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in dev.langchain4j.service.guardrail that return types with arguments of type ToolGuardrailStageModifier and TypeMethodDescriptionGuardedToolExecution.failedStage()The stage whose guardrails turned the call into an error result, so that a caller does not have to infer it:ToolGuardrailStage.INPUTwhen an input guardrail rejected the call (the tool did not run), andToolGuardrailStage.OUTPUTwhen the output guardrails turned the successful result of the tool into an error result (a failure, or a rewrite to an error).Methods in dev.langchain4j.service.guardrail with parameters of type ToolGuardrailStageModifier and TypeMethodDescriptionGuardedToolExecution.Builder.failedStage(@Nullable ToolGuardrailStage failedStage)