agents / Exports / IToolFactory
Interface: IToolFactory
Tool factory interface
Table of contents
Methods
Methods
createFunctionTool
▸ createFunctionTool(schema, fn): IFunctionTool
Create function tool from schema and function
Parameters
| Name | Type |
|---|---|
schema | IToolSchema |
fn | TToolExecutor<TToolParameters, TUniversalValue> |
Returns
Defined in
packages/agents/src/interfaces/tool.ts:285
createOpenAPITool
▸ createOpenAPITool(config): IToolInterface
Create tool from OpenAPI specification
Parameters
| Name | Type |
|---|---|
config | IOpenAPIToolConfig |
Returns
Defined in
packages/agents/src/interfaces/tool.ts:290
createMCPTool
▸ createMCPTool(config): IToolInterface
Create MCP tool
Parameters
| Name | Type |
|---|---|
config | IMCPToolConfig |