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
def on_failure(mut self, action: GuardrailAction) -> SelfParameters
ParamField
GuardrailActionNo description available.
Returns
ResponseField
SelfThe result of the operation.