Skip to content

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 ParameterDefault type
TOutputunknown

Properties

PropertyModifierTypeDescriptionDefined in
contentParts?readonlyreadonly 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
durationMsreadonlynumber-packages/core/src/types/tool.ts:178
outputreadonlyTOutput-packages/core/src/types/tool.ts:171
toolCallIdreadonlystring-packages/core/src/types/tool.ts:169
toolNamereadonlystring-packages/core/src/types/tool.ts:170