vllm.tool_parsers.olmo3_tool_parser
¶
Classes:
-
Olmo3PythonicToolParser–Tool call parser for Olmo 3 models that produce tool calls as
Olmo3PythonicToolParser
¶
Bases: ToolParser
Tool call parser for Olmo 3 models that produce tool calls as newline-separated pythonic strings. Used when --enable-auto-tool-choice --tool-call-parser pythonic are all set Code copied from pythonic_tool_parser.py and updated to handle - newline separated pythonic tool calls. - argument values being null/true/false instead of Pythonic literals.
Methods:
-
extract_tool_calls–Extract the tool calls from a complete model response.
extract_tool_calls(model_output, request)
¶
Extract the tool calls from a complete model response.