IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python class

ParsedReasoningDelta

ParsedReasoningDelta​

class max.pipelines.modeling.types.ParsedReasoningDelta(span, is_still_reasoning, reasoning_text_formatter=None)

source

Bases: object

Result of applying reasoning parsing to a streaming delta chunk.

Parameters:

is_still_reasoning​

is_still_reasoning: bool

source

Whether the reasoning section is still active.

reasoning_text_formatter​

reasoning_text_formatter: Callable[[str], str | None] | None = None

source

Optional callback to post-process decoded reasoning text.

Returns the formatted text, or None if the text should be ignored.

span​

span: ReasoningSpan

source

The ReasoningSpan identifying the reasoning portion of the chunk.