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