vllm.tool_parsers.minicpm5xml_tool_parser
¶
Classes:
-
MiniCPM5XMLToolParser–MiniCPM5 XML tool parser.
MiniCPM5XMLToolParser
¶
_add_argument(func_name, key, val_text, arguments, seen_keys, allowed_props, param_types)
¶
Add one argument; return False if it violates the tool schema.
_normalize_alias_tool_call(func_name, arguments, tool_names)
¶
Map common MiniCPM5 alias tool names to the exposed tool schema.
_parse_function_block(block, tool_names, name_to_allowed_props, name_to_required, param_types)
¶
Return {name, parameters} if block is valid, else None.
_streaming_args_diff(prev_args, args_json, *, is_complete)
¶
Compute the next arguments fragment for OpenAI-style streaming accumulation.
_streaming_args_snapshot(args_json, *, is_complete)
¶
Return the streamed arguments prefix, omitting the closing brace until done.
_strip_thinking_content(text)
¶
Return only user-visible content after MiniCPM5 thinking, when present.