Skip to main content

ToolCallData

Defined in the streaming module.
Rust AI Agent SDK Tool call data for streaming events.

Fields

NameTypeDescription
nameStringTool name
argumentsStringTool arguments (partial JSON)
idOption<String>Tool call ID
indexOption<usize>Index in the tool calls array

Methods

new

fn new(name: impl Into<String>) -> Self
Create new tool call data Parameters:
NameType
nameimpl Into&lt;String&gt;

arguments

fn arguments(mut self, args: impl Into<String>) -> Self
Set arguments Parameters:
NameType
argsimpl Into&lt;String&gt;

id

fn id(mut self, id: impl Into<String>) -> Self
Set ID Parameters:
NameType
idimpl Into&lt;String&gt;

Source

View on GitHub

praisonai/src/streaming/mod.rs at line 78