Function: materializeContract()
ts
function materializeContract<TContext>(builder): Promise<ToolContract>;Defined in: packages/core/src/introspection/ToolContract.ts:169
Materialize a ToolContract from a builder's public API.
Extracts all behavioral metadata from the builder's introspection methods without accessing any private internals. This guarantees compatibility with any ToolBuilder implementation.
Type Parameters
| Type Parameter |
|---|
TContext |
Parameters
| Parameter | Type | Description |
|---|---|---|
builder | ToolBuilder<TContext> | A registered tool builder |
Returns
Promise<ToolContract>
A fully materialized ToolContract