Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/core / / ToolReturn

Interface: ToolReturn<TOutput>

Defined in: packages/core/src/contracts/tool.ts:203

Optional return envelope: pairs a typed output (passed to the model) with extra contentParts that are appended verbatim to the conversation (images, files, audio, …).

Stable

Type Parameters

Type ParameterDefault type
TOutputunknown

Properties

PropertyModifierTypeDefined in
contentParts?readonlyreadonly MessageContent[]packages/core/src/contracts/tool.ts:205
outputreadonlyTOutputpackages/core/src/contracts/tool.ts:204