Open History to see the last commit
function createFrozenRegistry<TTool>(tools?): ToolRegistry<TTool>;
Defined in: packages/ai/src/tool-registry.ts:119
Create a frozen (immutable) tool registry from a tools array.
Use it to wrap a static tools array.
Add and remove operations are no-ops on frozen registries.
Type Parameters#
TTool#
TTool extends AnyTool = AnyTool
Parameters#
tools?#
TTool[] = []
The static array of tools
Returns#
ToolRegistry<TTool>
A frozen ToolRegistry