minchyeom commited on
Commit
2afcf85
·
1 Parent(s): eb6259a

Reduce timeout for terminal command execution from 30 to 3 seconds

Browse files
Files changed (1) hide show
  1. src/tools.py +4 -2
src/tools.py CHANGED
@@ -6,8 +6,10 @@ import subprocess
6
  from typing import Final
7
 
8
 
9
- def execute_terminal(command: str, *, timeout: int = 30) -> str:
10
- """Execute a shell command inside an isolated Linux VM.
 
 
11
 
12
  The command is executed with network access enabled. Output from both
13
  ``stdout`` and ``stderr`` is captured and returned. Commands are killed if
 
6
  from typing import Final
7
 
8
 
9
+ def execute_terminal(command: str, *, timeout: int = 3) -> str:
10
+ """
11
+ Execute a shell command inside an isolated Linux VM.
12
+ Use this tool to run various commands.
13
 
14
  The command is executed with network access enabled. Output from both
15
  ``stdout`` and ``stderr`` is captured and returned. Commands are killed if