mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 11:40:47 +00:00
Docker image, code exe, callstack
- Docker image update - Code exex tool standalone result variables in python and nodejs returned - Agent chain callstack fix after chat loading from file
This commit is contained in:
parent
4d50ae6190
commit
763ec9e228
9 changed files with 115 additions and 30 deletions
|
|
@ -112,12 +112,12 @@ class CodeExecution(Tool):
|
|||
|
||||
async def execute_python_code(self, code: str, reset: bool = False):
|
||||
escaped_code = shlex.quote(code)
|
||||
command = f"python3 -c {escaped_code}"
|
||||
command = f"ipython -c {escaped_code}"
|
||||
return await self.terminal_session(command, reset)
|
||||
|
||||
async def execute_nodejs_code(self, code: str, reset: bool = False):
|
||||
escaped_code = shlex.quote(code)
|
||||
command = f"node -e {escaped_code}"
|
||||
command = f"node /exe/node_eval.js {escaped_code}"
|
||||
return await self.terminal_session(command, reset)
|
||||
|
||||
async def execute_terminal_command(self, command: str, reset: bool = False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue