ToolChunk
A tool call chunk from the LLM response stream.
Class Diagram
Section titled “Class Diagram”---
title: ToolChunk
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class StreamChunk {
<<abstract>>
+string kind
}
StreamChunk <|-- ToolChunk
class ToolChunk {
+string kind
+ToolCall toolCall
}
class ToolCall {
+string id
+string name
+string arguments
}
ToolChunk *-- ToolCall
Yaml Example
Section titled “Yaml Example”toolCall: id: call_abc123 name: get_weather arguments: '{"city": "Paris"}'Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The kind identifier for tool chunks |
| toolCall | ToolCall | The tool call data |
Composed Types
Section titled “Composed Types”The following types are composed within ToolChunk: