Variable: defaultResolveToolCallParser
ts
const defaultResolveToolCallParser: (
option: ToolCallParserName | ToolCallParserFn | undefined,
parsers: Partial<
Record<Exclude<ToolCallParserName, "auto" | "none">, ToolCallParserFn>
>,
) => ToolCallParserFn = resolveToolCallParser;Defined in: src/batteries/llm/chat_common/tool_parsers.ts:1135
Default resolveToolCallParser.
Resolve a toolCallParser option (a name, 'auto', 'none', or a custom fn) to a concrete ToolCallParserFn.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
option | | ToolCallParserName | ToolCallParserFn | undefined | undefined | The option value. Defaults to 'auto' when undefined. |
parsers | Partial<Record<Exclude<ToolCallParserName, "auto" | "none">, ToolCallParserFn>> | BUNDLED_TOOL_CALL_PARSERS | Override the bundled family parsers (e.g. swap the Gemma parser). |