Skip to content
Prompty

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.

---
title: ToolDispatchResult
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class ToolDispatchResult {
        +string toolCallId
        +string name
        +ToolResult result
    }
    class ToolResult {
        +ContentPart[] parts
        +string status
        +string errorKind
        +string errorMessage
        +float64 durationMs
    }
    ToolDispatchResult *-- ToolResult
toolCallId: call_abc123
name: get_weather
result:
parts:
- kind: text
value: 72°F and sunny
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

The following types are composed within ToolDispatchResult: