mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-04-28 19:51:11 +00:00
Instruments
Added instruments - loading to memory, injecting to system prompt, example yt_download
This commit is contained in:
parent
c95d643be4
commit
a6d0c5b862
17 changed files with 221 additions and 131 deletions
|
|
@ -36,7 +36,7 @@ class CodeExecution(Tool):
|
|||
response = await self.execute_terminal_command(self.args["code"])
|
||||
elif runtime == "output":
|
||||
response = await self.get_terminal_output(
|
||||
wait_with_output=5, wait_without_output=20
|
||||
wait_with_output=5, wait_without_output=60
|
||||
)
|
||||
elif runtime == "reset":
|
||||
response = await self.reset_terminal()
|
||||
|
|
@ -137,7 +137,7 @@ class CodeExecution(Tool):
|
|||
return await self.get_terminal_output()
|
||||
|
||||
async def get_terminal_output(
|
||||
self, wait_with_output=3, wait_without_output=10, max_exec_time=15
|
||||
self, wait_with_output=3, wait_without_output=10, max_exec_time=60
|
||||
):
|
||||
idle = 0
|
||||
SLEEP_TIME = 0.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue