failure • Rust AI Agent SDK
failure: Create a failed result
failure
Method
</div>
This is a method of the GuardrailResult class in the guardrails module.
Create a failed result
Signature
def failure(error: impl Into<String>) -> SelfParameters
ParamField
impl Into<String>No description available.
Returns
ResponseField
SelfThe result of the operation.