---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/interfaces/ReasoningParseResult.md
description: 'The result of running a [`ReasoningParserFn`](https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/helpers/type-aliases/ReasoningParserFn) over assistant text.'
---

# Interface: ReasoningParseResult

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

The result of running a [ReasoningParserFn](../type-aliases/ReasoningParserFn.md) over assistant text.

## Remarks

`reasoning` holds each extracted thinking trace in document order; `cleanedText` is the prose with
every consumed reasoning span removed and trimmed. On no-match a parser MUST return
`{ reasoning: [], cleanedText: rawText }` verbatim.

## Properties

| Property                                        | Type       | Description                                                                          | Defined in                                                                                                                                                          |
| ----------------------------------------------- | ---------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  `cleanedText` | `string`   | The prose with every consumed reasoning span removed; equals the input on no-match.  | [src/batteries/llm/chat\_common/reasoning\_parsers.ts:34](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/reasoning_parsers.ts#L34) |
|  `reasoning`     | `string`\[] | Each extracted thinking trace, in document order. Empty when no reasoning was found. | [src/batteries/llm/chat\_common/reasoning\_parsers.ts:32](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/reasoning_parsers.ts#L32) |
