Skip to content
1 min read · 118 words

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

PropertyTypeDescriptionDefined in
cleanedTextstringThe prose with every consumed reasoning span removed; equals the input on no-match.src/batteries/llm/chat_common/reasoning_parsers.ts:34
reasoningstring[]Each extracted thinking trace, in document order. Empty when no reasoning was found.src/batteries/llm/chat_common/reasoning_parsers.ts:32