vllm.parser.harmony
¶
Classes:
HarmonyParser
¶
Bases: DelegatingParser
Methods:
-
parse–Parse Harmony output from token IDs.
_harmony_parser
property
¶
Lazily initializes the Harmony parser.
_normalize_recipient(recipient)
staticmethod
¶
Remove constrained formats misparsed into recipients by older Harmony.
parse(model_output, request, enable_auto_tools=False, model_output_token_ids=())
¶
Parse Harmony output from token IDs.
Tool calls are always extracted regardless of enable_auto_tools.
Callers must decide whether to surface them.
_adjust_output_format(request)
¶
Canonicalize request constraints into a reasoning-aware StructuralTag.