Skip to main content
Version: 0.7.x

Interface: ToolsConfig

Defined in: packages/react-native-executorch/src/types/llm.ts:232

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: packages/react-native-executorch/src/types/llm.ts:235

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: packages/react-native-executorch/src/types/llm.ts:234

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

Parameters​

call​

ToolCall

Returns​

Promise<string | null>


tools​

tools: Object[]

Defined in: packages/react-native-executorch/src/types/llm.ts:233

List of objects defining tools.