failure • Rust AI Agent SDK

failure: Create a failed step result

failure

Method

</div>

This is a method of the StepResult class in the workflows module.

Create a failed step result

Signature

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

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.