Code interpreter tool — safe Python code execution in subprocess.
CodeInterpreterTool(timeout: int = 30, max_output: int = 10000)
Bases: BaseTool
Execute Python code in an isolated subprocess.
Source code in src/openjarvis/tools/code_interpreter.py
| def __init__(self, timeout: int = 30, max_output: int = 10000):
self._timeout = timeout
self._max_output = max_output
|