Skip to content

Function: compileContracts()

ts
function compileContracts<TContext>(builders): Promise<Record<string, ToolContract>>;

Defined in: packages/core/src/introspection/ToolContract.ts:336

Compile contracts for all tools in a registry.

Type Parameters

Type Parameter
TContext

Parameters

ParameterTypeDescription
buildersIterable<ToolBuilder<TContext>>Iterable of all registered tool builders

Returns

Promise<Record<string, ToolContract>>

Record mapping tool names to their materialized contracts