Skip to main content

ToolUseData

Type Alias ToolUseData 

Source
pub type ToolUseData = ToolUse;
Expand description

The tool-use descriptor on tool-call events (ToolUseData): the shape of the model’s tool use.

Aliased Type§

pub struct ToolUseData {
    pub name: String,
    pub tool_use_id: String,
    pub input: Value,
}

Fields§

§name: String

The name of the tool to execute.

§tool_use_id: String

Identifier that matches the result back to this request.

§input: Value

The tool input.