HostToolResult
Result returned by a host tool executor.
Class Diagram
Section titled “Class Diagram”---
title: HostToolResult
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class HostToolResult {
+string requestId
+string toolCallId
+string toolName
+boolean success
+unknown result
+int32 exitCode
+float64 durationMs
+string errorKind
+dictionary telemetry
}
Yaml Example
Section titled “Yaml Example”requestId: exec_abc123toolCallId: call_abc123toolName: powershellsuccess: trueexitCode: 0durationMs: 250errorKind: timeoutProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| requestId | string | Stable host execution request identifier |
| toolCallId | string | Associated model tool call identifier, when available |
| toolName | string | Name of the host tool that executed |
| success | boolean | Whether the host execution completed successfully |
| result | unknown | Host-normalized execution result |
| exitCode | int32 | Process or host exit code, when applicable |
| durationMs | float64 | Tool execution duration in milliseconds |
| errorKind | string | Machine-readable error category when success is false |
| telemetry | dictionary | Host-specific telemetry for the execution |