Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
fn success(name: impl Into<String>, value: Value) -> Self
Create a successful result
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
value | Value |
failure
fn failure(name: impl Into<String>, error: impl Into<String>) -> Self
Create a failed result
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
error | impl Into<String> |
Source
View on GitHub
praisonai/src/tools/mod.rs at line 27