Skip to main content

Function: createTools()

createTools<Tool>(record): Promise<InstanceType<ToolsMap[Tool]>[]>

Type Parameters

Tool extends Tools

Parameters

record: { [key in Tools]: ConstructorParameters<ToolsMap[Tool]>[1] extends any ? ConstructorParameters<ToolsMap[Tool]>[0] : ConstructorParameters<ToolsMap[Tool]> }

Returns

Promise<InstanceType<ToolsMap[Tool]>[]>

Defined in

packages/llamaindex/src/tools/ToolsFactory.ts:39