On Failure • Rust AI Agent SDK

on_failure: Set failure action

on_failure

Method

</div>

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

Set failure action

Signature

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

Parameters

ParamField GuardrailAction

No description available.

Returns

ResponseField Self

The result of the operation.