Skip to content
1 min read · 62 words

Function: makeHarmonyAnalysisReasoningParser()

ts
function makeHarmonyAnalysisReasoningParser(
  opts?: ReasoningParserOptions,
): ReasoningParserFn;

Defined in: src/batteries/llm/chat_common/reasoning_parsers.ts:222

Parse gpt-oss Harmony chain-of-thought on the analysis channel: <|channel|>analysis<|message|>…<|end|>. (The user-visible answer is the separate final channel; tool calls are commentary — handled by the tool-call parser.) Unpaired markers are recovered by default — see ReasoningParserOptions.

Parameters

ParameterType
optsReasoningParserOptions

Returns

ReasoningParserFn