[Frontend] Port the MiniMax M3 tool parser to the parser engine (#59743)

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bugen Zhao
2026-10-06 05:46:27 +00:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 6fddc9b21e
commit 5145e35e50
7 changed files with 658 additions and 41 deletions
+5 -4
View File
@@ -74,10 +74,11 @@ def _discover_parsers() -> list[_ParserInfo]:
if cfg.name not in _BUILDERS:
missing_builders.append(f"{obj.__name__} (config.name={cfg.name!r})")
continue
if cfg.name in ("inkling", "plamo3"):
# Inkling uses typed structural blocks. PLaMo markers can span
# several token IDs. Neither fits this TOOL_END-token harness;
# their direct and delegating coverage lives in dedicated tests.
if cfg.name in ("inkling", "plamo3", "minimax_m3"):
# Inkling uses typed structural blocks. PLaMo and MiniMax M3
# markers can span several token IDs. None fits this TOOL_END-token
# harness; their direct and delegating coverage lives in dedicated
# tests.
continue
if cfg.name == "granite":
# Granite has a JSON-array tool body with no TOOL_END terminal, so