failure • Rust AI Agent SDK

failure: Create a failed result

failure

Method

</div>

This is a method of the HandoffResult class in the handoff module.

Create a failed result

Signature

python
def failure(error: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.