Skip to content

agents / Exports / ToolRegistryInterface

Interface: ToolRegistryInterface

Tool registry interface

Implemented by

Table of contents

Methods

Methods

register

register(tool): void

Register a tool

Parameters

NameType
toolToolInterface

Returns

void

Defined in

packages/agents/src/interfaces/tool.ts:200


unregister

unregister(name): void

Unregister a tool

Parameters

NameType
namestring

Returns

void

Defined in

packages/agents/src/interfaces/tool.ts:205


get

get(name): undefined | ToolInterface

Get tool by name

Parameters

NameType
namestring

Returns

undefined | ToolInterface

Defined in

packages/agents/src/interfaces/tool.ts:210


getAll

getAll(): ToolInterface[]

Get all registered tools

Returns

ToolInterface[]

Defined in

packages/agents/src/interfaces/tool.ts:215


getSchemas

getSchemas(): ToolSchema[]

Get tool schemas

Returns

ToolSchema[]

Defined in

packages/agents/src/interfaces/tool.ts:220


has

has(name): boolean

Check if tool exists

Parameters

NameType
namestring

Returns

boolean

Defined in

packages/agents/src/interfaces/tool.ts:225


clear

clear(): void

Clear all tools

Returns

void

Defined in

packages/agents/src/interfaces/tool.ts:230

Released under the MIT License.