register
register<
I,O>(tool):Tool<I,O>
Defined in: packages/core/src/registry.ts:24
Add a tool to the REGISTRY; throws on a duplicate id. Returns the tool.
Type Parameters
Section titled “Type Parameters”I
O
Parameters
Section titled “Parameters”Tool<I, O>
Returns
Section titled “Returns”Tool<I, O>