Skip to main content

Function: handleToolCalls()

handleToolCalls<TState>(tools, config?): IterationHandler<TState>

Defined in: packages/core/src/utils/tool-loop.ts:63

Type Parameters

TState

TState extends Record<string, unknown> = Record<string, unknown>

Parameters

tools

Record<string, ToolDefinition | ZodToolDefinition | Processable>

config?

ToolLoopConfig = {}

Returns

IterationHandler<TState>

Deprecated

Use Baleybot.create() with tools and maxSteps instead. Will be removed in the next major version.