Skip to content

Agent Zero AI framework

Update code_execution_tool.py

frdelbf1c2e277106
diff --git a/python/tools/code_execution_tool.py b/python/tools/code_execution_tool.py
index 165890080..33e297180 100644
--- a/python/tools/code_execution_tool.py
+++ b/python/tools/code_execution_tool.py
@@ -210,7 +210,7 @@ class CodeExecution(Tool):
while True:
await asyncio.sleep(sleep_time)
full_output, partial_output = await self.state.shells[session].read_output(
- timeout=between_output_timeout, reset_full_output=reset_full_output
+ timeout=3, reset_full_output=reset_full_output
)
reset_full_output = False # only reset once