Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/core / / ToolResult
Interface: ToolResult<TOutput>
Defined in: packages/core/src/types/tool.ts:168
The successful outcome of a tool invocation, returned to the model.
Stable
Type Parameters
| Type Parameter | Default type |
|---|---|
TOutput | unknown |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
contentParts? | readonly | readonly MessageContent[] | Optional content parts to append to the conversation (images, files, etc.). Tools that emit binary results use this field instead of trying to encode the binary into output. | packages/core/src/types/tool.ts:177 |
durationMs | readonly | number | - | packages/core/src/types/tool.ts:178 |
output | readonly | TOutput | - | packages/core/src/types/tool.ts:171 |
toolCallId | readonly | string | - | packages/core/src/types/tool.ts:169 |
toolName | readonly | string | - | packages/core/src/types/tool.ts:170 |