Interface: ReasoningParseResult
Defined in: src/batteries/llm/chat_common/reasoning_parsers.ts:30
The result of running a ReasoningParserFn 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 |
reasoning | string[] | Each extracted thinking trace, in document order. Empty when no reasoning was found. | src/batteries/llm/chat_common/reasoning_parsers.ts:32 |