---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/variables/defaultResolveReasoningParser.md
description: 'Default [`resolveReasoningParser`](https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/functions/resolveReasoningParser).'
---

# Variable: defaultResolveReasoningParser

```ts
const defaultResolveReasoningParser: (
  option: ReasoningParserName | ReasoningParserFn | undefined,
  parsers: Partial<
    Record<Exclude<ReasoningParserName, "auto" | "none">, ReasoningParserFn>
  >,
  opts: ReasoningParserOptions,
) => ReasoningParserFn = resolveReasoningParser;
```

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

Default [resolveReasoningParser](../functions/resolveReasoningParser.md).

Resolve a `reasoningParser` option (a name, `'auto'`, `'none'`, or a custom fn) to a concrete
[ReasoningParserFn](../type-aliases/ReasoningParserFn.md).

## Parameters

| Parameter | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Default value               | Description                                                                                                                                                                                |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `option`  | | [`ReasoningParserName`](../type-aliases/ReasoningParserName.md) | [`ReasoningParserFn`](../type-aliases/ReasoningParserFn.md) | `undefined`                                                                                                                                                                                                                                                                                                        | `undefined`                 | The option value. Defaults to `'auto'` when undefined.                                                                                                                                     |
| `parsers` | [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype)<[`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)<[`Exclude`](https://www.typescriptlang.org/docs/handbook/utility-types.html#excludetype-excludedunion)<[`ReasoningParserName`](../type-aliases/ReasoningParserName.md), `"auto"` | `"none"`>, [`ReasoningParserFn`](../type-aliases/ReasoningParserFn.md)>> | `BUNDLED_REASONING_PARSERS` | Override the bundled parsers. Ignored when `opts.orphanRecovery` is set (the bundled family parsers are rebuilt with that setting); pass a custom `option` fn for full control.            |
| `opts`    | [`ReasoningParserOptions`](../interfaces/ReasoningParserOptions.md)                                                                                                                                                                                                                                                                                                                                                                                     | `{}`                        | [ReasoningParserOptions](../interfaces/ReasoningParserOptions.md); `orphanRecovery` defaults to `true`. When `false`, the named/auto bundled parsers are rebuilt in strict pair-only mode. |

## Returns

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