agent-core / 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/agent-core/src/interfaces/tool.ts:293
createOpenAPITool
▸ createOpenAPITool(config): ITool
Create tool from OpenAPI specification
Parameters
| Name | Type |
|---|---|
config | IOpenAPIToolConfig |
Returns
Defined in
packages/agent-core/src/interfaces/tool.ts:298
createMCPTool
▸ createMCPTool(config): ITool
Create MCP tool
Parameters
| Name | Type |
|---|---|
config | IMCPToolConfig |