---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/functions/makeHarmonyAnalysisReasoningParser.md
---

# Function: makeHarmonyAnalysisReasoningParser()

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

Defined in: [src/batteries/llm/chat\_common/reasoning\_parsers.ts:222](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/reasoning_parsers.ts#L222)

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](../interfaces/ReasoningParserOptions.md).

## Parameters

| Parameter | Type                                                                |
| --------- | ------------------------------------------------------------------- |
| `opts`    | [`ReasoningParserOptions`](../interfaces/ReasoningParserOptions.md) |

## Returns

[`ReasoningParserFn`](../type-aliases/ReasoningParserFn.md)
