Class ToolOutputGuardrailResult.Failure

java.lang.Object
dev.langchain4j.guardrail.ToolOutputGuardrailResult.Failure
All Implemented Interfaces:
GuardrailResult.Failure
Enclosing class:
ToolOutputGuardrailResult

@Experimental public static final class ToolOutputGuardrailResult.Failure extends Object implements GuardrailResult.Failure
Represents a tool output guardrail failure. Its message is sent to the LLM verbatim as the content of an error tool result, unless the failure is fatal. When an input guardrail changed the arguments of the call, the note that says so comes before the message.
Since:
1.25.0