Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/core / / ToolExample
Interface: ToolExample<TInput, TOutput>
Defined in: packages/core/src/contracts/tool.ts:170
Worked example for a Tool. Type-parameterized on the same generics as Tool, so a ToolExample for Tool<{ q: string }, { hits: T[] }> cannot specify an input shape that does not match.
Stable
Type Parameters
| Type Parameter | Default type |
|---|---|
TInput | unknown |
TOutput | unknown |
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
comment? | readonly | string | packages/core/src/contracts/tool.ts:173 |
input | readonly | TInput | packages/core/src/contracts/tool.ts:171 |
output | readonly | | TOutput | ToolReturn<TOutput> | packages/core/src/contracts/tool.ts:172 |