Skip to content

vllm_mlx.reasoning.poolside_v1_parser

Reasoning parser for Poolside Laguna models.

View the complete module source at #L1-L13.

API details

Each callable below includes its exact signature, type annotations, inputs, defaults, return contract, documented exceptions, implementation source, and parsed docstring sections when the source provides them.

vllm_mlx.reasoning.poolside_v1_parser

Reasoning parser for Poolside Laguna models.

vllm_mlx.reasoning.poolside_v1_parser.PoolsideV1ReasoningParser

PoolsideV1ReasoningParser(tokenizer=None)

Bases: Qwen3ReasoningParser

Parse Laguna's template-injected <think> reasoning boundary.

vllm-mlx reasoning parsers receive only the generated assistant text, not prompt-history token IDs. Historical </think> markers therefore cannot affect this output-scoped parser as they can in token-aware vLLM serving.

Source code in vllm_mlx/reasoning/think_parser.py
def __init__(self, tokenizer=None):
    super().__init__(tokenizer)
    # Streaming state — reset per request via reset_state()
    self._phase: str = "pre_think"  # "pre_think" | "thinking" | "content"
    self._content_started = False
    self._content_buffer = ""
    # Tool call promotion state.
    self._in_tool_call = False
    self._tool_call_buffer = ""

Complete contract reference

Expand any definition for its exact inputs, annotations, defaults, return contract, directly raised exceptions, source-grounded behavior, and immutable line link. This section includes private and nested definitions that ordinary API generators omit.

vllm_mlx.reasoning.poolside_v1_parser.PoolsideV1ReasoningParser · class
vllm_mlx.reasoning.poolside_v1_parser.PoolsideV1ReasoningParser()

Parse Laguna's template-injected <think> reasoning boundary.

Parameters

This callable has no explicit inputs.

Returns

  • Constructs: vllm_mlx.reasoning.poolside_v1_parser.PoolsideV1ReasoningParser

Exceptions and behavior

Class PoolsideV1ReasoningParser derives from Qwen3ReasoningParser and declares 0 direct member(s). No direct raise statement appears in this definition.

View source #L7-L13.

Complete symbol map

This map also includes private definitions and nested helpers. The signature column exposes every explicit input even when an internal helper has no dedicated parameter prose.

Symbol Kind Signature and inputs What it does Source
PoolsideV1ReasoningParser class PoolsideV1ReasoningParser() Parse Laguna's template-injected <think> reasoning boundary. #L7-L13