agents / Exports / ToolManagerInterface
Interface: ToolManagerInterface
Tool Manager interface for tool registration and management
Table of contents
Methods
Methods
addTool
▸ addTool(schema, executor): void
Register a tool
Parameters
| Name | Type |
|---|---|
schema | ToolSchema |
executor | ToolExecutor |
Returns
void
Defined in
packages/agents/src/interfaces/manager.ts:83
removeTool
▸ removeTool(name): void
Remove a tool by name
Parameters
| Name | Type |
|---|---|
name | string |
Returns
void
Defined in
packages/agents/src/interfaces/manager.ts:88
getTool
▸ getTool(name): undefined | ToolInterface
Get tool interface by name
Parameters
| Name | Type |
|---|---|
name | string |
Returns
undefined | ToolInterface
Defined in
packages/agents/src/interfaces/manager.ts:93
getToolSchema
▸ getToolSchema(name): undefined | ToolSchema
Get tool schema by name
Parameters
| Name | Type |
|---|---|
name | string |
Returns
undefined | ToolSchema
Defined in
packages/agents/src/interfaces/manager.ts:98
getTools
▸ getTools(): ToolSchema[]
Get all registered tools
Returns
Defined in
packages/agents/src/interfaces/manager.ts:103
executeTool
▸ executeTool(name, parameters): Promise<ToolExecutionData>
Execute a tool
Parameters
| Name | Type |
|---|---|
name | string |
parameters | ManagerToolParameters |
Returns
Promise<ToolExecutionData>
Defined in
packages/agents/src/interfaces/manager.ts:108
hasTool
▸ hasTool(name): boolean
Check if tool exists
Parameters
| Name | Type |
|---|---|
name | string |
Returns
boolean
Defined in
packages/agents/src/interfaces/manager.ts:113
setAllowedTools
▸ setAllowedTools(tools): void
Set allowed tools (for filtering)
Parameters
| Name | Type |
|---|---|
tools | string[] |
Returns
void
Defined in
packages/agents/src/interfaces/manager.ts:118
getAllowedTools
▸ getAllowedTools(): undefined | string[]
Get allowed tools
Returns
undefined | string[]