agents / Exports / ToolFactoryInterface
Interface: ToolFactoryInterface
Tool factory interface
Table of contents
Methods
Methods
createFunctionTool
▸ createFunctionTool(schema, fn): FunctionTool
Create function tool from schema and function
Parameters
| Name | Type |
|---|---|
schema | ToolSchema |
fn | ToolExecutor<ToolParameters, ToolExecutionData> |
Returns
FunctionTool
Defined in
packages/agents/src/interfaces/tool.ts:240
createOpenAPITool
▸ createOpenAPITool(config): ToolInterface
Create tool from OpenAPI specification
Parameters
| Name | Type |
|---|---|
config | OpenAPIToolConfig |
Returns
Defined in
packages/agents/src/interfaces/tool.ts:245
createMCPTool
▸ createMCPTool(config): ToolInterface
Create MCP tool
Parameters
| Name | Type |
|---|---|
config | MCPToolConfig |