ToolResult
Defined in the Tools module.Rust AI Agent SDK Result of a tool execution
Fields
| Name | Type | Description |
|---|---|---|
name | String | The tool name |
value | Value | The result value (JSON) |
success | bool | Whether the execution was successful |
error | Option<String> | Error message if failed |
Methods
success
| Name | Type |
|---|---|
name | impl Into<String> |
value | Value |
failure
| Name | Type |
|---|---|
name | impl Into<String> |
error | impl Into<String> |

