Set Failed • Rust AI Agent SDK

set_failed: Set task as failed

set_failed

Method

</div>

This is a method of the Task class in the task module.

Set task as failed

Signature

python
def set_failed(&mut self, error: &str) -> ()

Parameters

ParamField &str

No description available.

Returns

ResponseField ()

The result of the operation.