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
pythondef set_failed(&mut self, error: &str) -> ()
Parameters
ParamField &strNo description available.
Returns
ResponseField ()The result of the operation.