mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
- Added new environments for reinforcement learning, including `HermesSweEnv` for software engineering tasks and `TerminalTestEnv` for inline testing. - Introduced `ToolContext` for unrestricted access to tools during reward computation. - Updated `.gitignore` to exclude `wandb/` directory. - Enhanced `README.md` with detailed architecture and usage instructions for Atropos environments. - Added configuration files for SWE and terminal test environments to streamline setup. - Removed unnecessary compiled Python files from `__pycache__`.
19 lines
572 B
Python
19 lines
572 B
Python
"""
|
|
Qwen 2.5 tool call parser.
|
|
|
|
Uses the same <tool_call> format as Hermes.
|
|
Registered as a separate parser name for clarity when using --tool-parser=qwen.
|
|
"""
|
|
|
|
from environments.tool_call_parsers import register_parser
|
|
from environments.tool_call_parsers.hermes_parser import HermesToolCallParser
|
|
|
|
|
|
@register_parser("qwen")
|
|
class QwenToolCallParser(HermesToolCallParser):
|
|
"""
|
|
Parser for Qwen 2.5 tool calls.
|
|
Same <tool_call>{"name": ..., "arguments": ...}</tool_call> format as Hermes.
|
|
"""
|
|
|
|
pass # Identical format -- inherits everything from Hermes
|