mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-26 01:01:40 +00:00
refactor: remove temporary debug logging in code execution tool
- Eliminated the temporary debug logging in the `execute_code` function that tracked enabled and sandbox tools, streamlining the code and reducing clutter.
This commit is contained in:
parent
6845852e82
commit
91907789af
1 changed files with 0 additions and 4 deletions
|
|
@ -342,10 +342,6 @@ def execute_code(
|
|||
session_tools = set(enabled_tools) if enabled_tools else set()
|
||||
sandbox_tools = frozenset(SANDBOX_ALLOWED_TOOLS & session_tools)
|
||||
|
||||
# Temporary debug — remove after investigating
|
||||
with open("/tmp/hermes_exec_debug.log", "a") as _dbg:
|
||||
_dbg.write(f"enabled_tools={enabled_tools}\nsandbox_tools={sandbox_tools}\n---\n")
|
||||
|
||||
if not sandbox_tools:
|
||||
sandbox_tools = SANDBOX_ALLOWED_TOOLS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue