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

# Function: makeGemmaChannelReasoningParser()

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

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

Parse Gemma E2B/E4B reasoning emitted on the thought channel:
`<|channel>thought\n…<channel|>`. Targets the E2B/E4B delimited form (the transformers.js-runnable
one). Reasoning is only emitted when `<|think|>` is injected into the system prompt. 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)
