agents / Exports / ToolRegistryInterface
Interface: ToolRegistryInterface
Tool registry interface
Implemented by
Table of contents
Methods
Methods
register
▸ register(tool): void
Register a tool
Parameters
| Name | Type |
|---|---|
tool | ToolInterface |
Returns
void
Defined in
packages/agents/src/interfaces/tool.ts:200
unregister
▸ unregister(name): void
Unregister a tool
Parameters
| Name | Type |
|---|---|
name | string |
Returns
void
Defined in
packages/agents/src/interfaces/tool.ts:205
get
▸ get(name): undefined | ToolInterface
Get tool by name
Parameters
| Name | Type |
|---|---|
name | string |
Returns
undefined | ToolInterface
Defined in
packages/agents/src/interfaces/tool.ts:210
getAll
▸ getAll(): ToolInterface[]
Get all registered tools
Returns
Defined in
packages/agents/src/interfaces/tool.ts:215
getSchemas
▸ getSchemas(): ToolSchema[]
Get tool schemas
Returns
Defined in
packages/agents/src/interfaces/tool.ts:220
has
▸ has(name): boolean
Check if tool exists
Parameters
| Name | Type |
|---|---|
name | string |
Returns
boolean
Defined in
packages/agents/src/interfaces/tool.ts:225
clear
▸ clear(): void
Clear all tools
Returns
void