mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
fix: increase default timeout for code execution sandbox
- Updated the default timeout for sandbox script execution from 120 seconds to 300 seconds (5 minutes) to allow longer-running scripts. - Enhanced comments in the code execution tool to clarify the timeout duration. - Suppressed stdout and stderr output from internal tool handlers during execution to prevent clutter in the CLI interface.
This commit is contained in:
2
cli.py
2
cli.py
@@ -136,7 +136,7 @@ def load_cli_config() -> Dict[str, Any]:
|
||||
"timeout": 120, # Seconds to wait for a clarify answer before auto-proceeding
|
||||
},
|
||||
"code_execution": {
|
||||
"timeout": 120, # Max seconds a sandbox script can run before being killed
|
||||
"timeout": 300, # Max seconds a sandbox script can run before being killed (5 min)
|
||||
"max_tool_calls": 50, # Max RPC tool calls per execution
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user