Function: defineTool()
defineTool<
P>(cfg):AnyTool
Defined in: src/server/ai/assistant/tool.ts:74
Define a tool with full arg typing, erased into an AnyTool for the registry. The as P cast in
run is sound because the executor validates args against params before calling it.
Type Parameters
P
P
Parameters
cfg
ToolConfig<P>