ToolDispatchResult
The result of dispatching a single tool call. Pairs the tool call identifier with the tool’s name and result for correlation in the agent loop’s message assembly.
Class Diagram
Section titled “Class Diagram”---
title: ToolDispatchResult
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class ToolDispatchResult {
+string toolCallId
+string name
+ToolResult result
}
class ToolResult {
+ContentPart[] parts
+text() string [async-capable]
}
ToolDispatchResult *-- ToolResult
Yaml Example
Section titled “Yaml Example”toolCallId: call_abc123name: get_weatherresult: parts: - kind: text value: 72°F and sunnyProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| toolCallId | string | The tool call ID from the LLM response, used to correlate results |
| name | string | The name of the tool that was called |
| result | ToolResult | The result produced by the tool handler |
Composed Types
Section titled “Composed Types”The following types are composed within ToolDispatchResult: