跳到主要内容

Class: ToolFactory

Constructors

constructor

new ToolFactory(): ToolFactory

Returns

ToolFactory

Methods

createTool

createTool(key, options): Promise<BaseTool>

Parameters

NameType
keyWikipedia
optionsRecord<string, any>

Returns

Promise<BaseTool>

Defined in

packages/core/src/tools/ToolFactory.ts:11


createTools

createTools(config): Promise<BaseTool[]>

Parameters

NameType
configToolConfig

Returns

Promise<BaseTool[]>

Defined in

packages/core/src/tools/ToolFactory.ts:25