ToolResultPayload
Payload for “tool_result” events — a tool has returned its result.
Class Diagram
Section titled “Class Diagram”---
title: ToolResultPayload
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class ToolResultPayload {
+string name
+ToolResult result
}
class ToolResult {
+ContentPart[] parts
+text() string [async-capable]
}
ToolResultPayload *-- ToolResult
Yaml Example
Section titled “Yaml Example”name: get_weatherresult: parts: - kind: text value: 72°F and sunnyProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| name | string | The name of the tool that produced the result |
| result | ToolResult | The tool’s result |
Composed Types
Section titled “Composed Types”The following types are composed within ToolResultPayload: