fail • Rust AI Agent SDK

fail: Create a failing result with a message

fail

Method

</div>

This is a method of the GuardrailResult class in the config module.

Create a failing result with a message

Signature

python
def fail(message: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.