Skip to content

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

Properties

PropertyModifierTypeDefined in
comment?readonlystringpackages/core/src/contracts/tool.ts:173
inputreadonlyTInputpackages/core/src/contracts/tool.ts:171
outputreadonly| TOutput | ToolReturn&lt;TOutput&gt;packages/core/src/contracts/tool.ts:172