Skip to main content
Version: 0.9.x

Interface: ToolsConfig

Defined in: types/llm.ts:333

Object configuring options for enabling and managing tool use. It will only have effect if your model's chat template support it.

Properties​

displayToolCalls?​

optional displayToolCalls: boolean

Defined in: types/llm.ts:336

If set to true, JSON tool calls will be displayed in chat. If false, only answers will be displayed.


executeToolCallback()​

executeToolCallback: (call) => Promise<string | null>

Defined in: types/llm.ts:335

Function that accepts ToolCall, executes tool and returns the string to model.

Parameters​

call​

ToolCall

Returns​

Promise<string | null>


tools​

tools: Object[]

Defined in: types/llm.ts:334

List of objects defining tools.