hermes-agent/environments/tool_call_parsers
Teknium 2ff03ebafe
fix: use non-greedy regex in DeepSeek V3 parser for multi-tool calls (#1300)
The greedy `.*` captures with `re.DOTALL` cause `findall()` to merge
multiple tool calls into a single match — silently dropping all but the
last tool call. Switching to `.*?` (non-greedy) fixes extraction when
models return multiple tool calls in one response.

Adds test coverage for the DeepSeek V3 parser including a multi-tool
call regression test.

Co-authored-by: Himess <semihcvlk53@gmail.com>
2026-03-14 06:19:28 -07:00
..
__init__.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
deepseek_v3_1_parser.py fix: add missing re.DOTALL to DeepSeek V3.1 parser (same bug as V3) 2026-03-06 04:41:47 -08:00
deepseek_v3_parser.py fix: use non-greedy regex in DeepSeek V3 parser for multi-tool calls (#1300) 2026-03-14 06:19:28 -07:00
glm45_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
glm47_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
hermes_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
kimi_k2_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
llama_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
longcat_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
mistral_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
qwen3_coder_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00
qwen_parser.py Add support for Atropos Agentic RL environments (requires branch tool_call_support in Atropos atm) 2026-02-07 09:17:16 +00:00