Skip to content
Prompty

ToolResultPayload

Payload for “tool_result” events — a tool has returned its result.

---
title: ToolResultPayload
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class ToolResultPayload {
        +string name
        +ToolResult result
    }
    class ToolResult {
        +ContentPart[] parts
        +string status
        +string errorKind
        +string errorMessage
        +float64 durationMs
    }
    ToolResultPayload *-- ToolResult
name: get_weather
result:
parts:
- kind: text
value: 72°F and sunny
Name Type Description
name string The name of the tool that produced the result
result ToolResult The tool’s result

The following types are composed within ToolResultPayload: