On Fail • Rust AI Agent SDK

on_fail: Set action on failure

on_fail

Method

</div>

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

Set action on failure

Signature

python
def on_fail(mut self, action: GuardrailAction) -> Self

Parameters

ParamField GuardrailAction

No description available.

Returns

ResponseField Self

The result of the operation.