Defined in: types/llm.ts:313
Object configuring options for enabling and managing tool use. It will only have effect if your model's chat template support it.
optionaldisplayToolCalls:boolean
Defined in: types/llm.ts:316
If set to true, JSON tool calls will be displayed in chat. If false, only answers will be displayed.
executeToolCallback: (
call) =>Promise<string|null>
Defined in: types/llm.ts:315
Function that accepts ToolCall, executes tool and returns the string to model.
Promise<string | null>
tools:
Object[]
Defined in: types/llm.ts:314
List of objects defining tools.