Function: createAutoReasoningParser()
ts
function createAutoReasoningParser(
parsers?: Partial<
Record<Exclude<ReasoningParserName, "auto" | "none">, ReasoningParserFn>
>,
order?: readonly ("think_tag" | "harmony_analysis" | "gemma_channel")[],
): ReasoningParserFn;Defined in: src/batteries/llm/chat_common/reasoning_parsers.ts:301
Compose an 'auto' reasoning parser: run each parser in order until one returns a non-empty reasoning array; that result wins. Returns no-match if none claim the text.
Parameters
| Parameter | Type | Default value |
|---|---|---|
parsers | Partial<Record<Exclude<ReasoningParserName, "auto" | "none">, ReasoningParserFn>> | BUNDLED_REASONING_PARSERS |
order | readonly ("think_tag" | "harmony_analysis" | "gemma_channel")[] | DEFAULT_REASONING_PARSER_ORDER |