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 Parameter | Default type |
|---|---|
TOutput | unknown |
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
contentParts? | readonly | readonly MessageContent[] | packages/core/src/contracts/tool.ts:205 |
output | readonly | TOutput | packages/core/src/contracts/tool.ts:204 |