pub struct ToolUseContent {
pub meta: Option<Map<String, Value>>,
pub id: String,
pub input: Map<String, Value>,
pub name: String,
pub type: ToolUseType,
}Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
Expand description
A request from the assistant to call a tool.
Fields§
§meta: Option<Map<String, Value>>Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
Optional metadata about the tool use. Clients SHOULD preserve this field when including tool uses in subsequent sampling requests to enable caching optimizations.
id: StringDeprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
A unique identifier for this tool use.
This ID is used to match tool results to their corresponding tool uses.
input: Map<String, Value>Deprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
The arguments to pass to the tool, conforming to the tool’s input schema.
name: StringDeprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
The name of the tool to call.
type: ToolUseTypeDeprecated as of protocol version 2026-07-28 (SEP-2577). Remains in the specification for at least twelve months; see the deprecated features registry.
Implementations§
Trait Implementations§
Source§impl Clone for ToolUseContent
impl Clone for ToolUseContent
Source§fn clone(&self) -> ToolUseContent
fn clone(&self) -> ToolUseContent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more