Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/tools / / normaliseTool
Function: normaliseTool()
ts
function normaliseTool<TInput, TOutput, TDeps>(tool, source): NormaliseOutcome<TInput, TOutput, TDeps>;Defined in: packages/tools/src/registry/normalize.ts:99
Normalise a tool registration. Throws on programming errors (invalid examples, invalid preferredModel, invalid sideEffectClass); collects WARN markers for the conservative-default branches.
Type Parameters
| Type Parameter |
|---|
TInput |
TOutput |
TDeps |
Parameters
| Parameter | Type |
|---|---|
tool | Tool<TInput, TOutput, TDeps> |
source | ToolSource |
Returns
NormaliseOutcome<TInput, TOutput, TDeps>