IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Python function

get_parser_cls

get_parser_cls()​

max.pipelines.lib.reasoning.get_parser_cls(name)

source

Look up a registered reasoning parser class by name.

Returns None if no parser is registered under that name, or if name is None. Useful for callers that need to invoke class-level hooks (such as ReasoningParser.reasoning_end_token_id()) without instantiating the parser.

Parameters:

name (str | None)

Return type:

type[ReasoningParser] | None