vllm.tool_parsers.glm47_moe_tool_parser ¶
GLM-4.7 Tool Call Parser.
GLM-4.7 uses a slightly different tool call format compared to GLM-4.5: - The function name may appear on the same line as <tool_call> without a newline separator before the first <arg_key>. - Tool calls may have zero arguments (e.g. <tool_call>func</tool_call>).
This parser overrides the parent regex patterns to handle both formats.