Skip to content

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

ParameterType
toolTool&lt;TInput, TOutput, TDeps&gt;
sourceToolSource

Returns

NormaliseOutcome&lt;TInput, TOutput, TDeps&gt;

Stable