vllm.parser.kimi_k2
¶
Kimi K2 parser for reasoning and tool calls.
Kimi K2 tool call format::
<|tool_calls_section_begin|>
<|tool_call_begin|>functions.get_weather:0
<|tool_call_argument_begin|>{"city": "Tokyo"}<|tool_call_end|>
<|tool_calls_section_end|>
The header before <|tool_call_argument_begin|> is Kimi's native tool
call id. The function name is the final component before :N.
Classes:
-
KimiK2Parser–Kimi K2 parser backed by the declarative parser engine.