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.
ToolCallData
Defined in the streaming module.
Rust AI Agent SDK
Tool call data for streaming events.
Fields
| Name | Type | Description |
|---|
name | String | Tool name |
arguments | String | Tool arguments (partial JSON) |
id | Option<String> | Tool call ID |
index | Option<usize> | Index in the tool calls array |
Methods
new
fn new(name: impl Into<String>) -> Self
Create new tool call data
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
arguments
fn arguments(mut self, args: impl Into<String>) -> Self
Set arguments
Parameters:
| Name | Type |
|---|
args | impl Into<String> |
fn id(mut self, id: impl Into<String>) -> Self
Set ID
Parameters:
| Name | Type |
|---|
id | impl Into<String> |
Source
View on GitHub
praisonai/src/streaming/mod.rs at line 78