Skip to content

vllm.tool_parsers.minicpm5xml_tool_parser

Classes:

MiniCPM5XMLToolParser

Bases: ToolParser

Read MiniCPM XML calls with CDATA-aware recovery of model output.

_find_function_end(text, start, *, final)

Find the close tag outside CDATA, including across streaming chunks.

_normalize_alias_tool_call(func_name, arguments, tool_names)

Map common MiniCPM5 alias tool names to the exposed tool schema.

_strip_thinking_content(text)

Return only user-visible content after MiniCPM5 thinking, when present.