Skip to content
Prompty

ToolCallCompletePayload

Payload for “tool_call_complete” events — a tool dispatch finished.

---
title: ToolCallCompletePayload
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class ToolCallCompletePayload {
        +string id
        +string name
        +boolean success
        +ToolResult result
        +float64 durationMs
        +string errorKind
    }
    class ToolResult {
        +ContentPart[] parts
        +string status
        +string errorKind
        +string errorMessage
        +float64 durationMs
    }
    ToolCallCompletePayload *-- ToolResult
id: call_abc123
name: get_weather
success: true
durationMs: 42
errorKind: timeout
Name Type Description
id string The unique identifier of the tool call
name string The name of the tool that completed
success boolean Whether the tool dispatch succeeded semantically
result ToolResult Normalized tool result
durationMs float64 Tool execution duration in milliseconds
errorKind string Machine-readable error category when success is false

The following types are composed within ToolCallCompletePayload: