Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Print out all of stdout on each process poll. (#69)

Erik Peterson3defe044bd55
diff --git a/agbenchmark/agent_interface.py b/agbenchmark/agent_interface.py
index 05540f6d37..77eb110bf3 100644
--- a/agbenchmark/agent_interface.py
+++ b/agbenchmark/agent_interface.py
@@ -61,8 +61,9 @@ def run_agent(
while True:
if process.stdout is None:
continue
- output = process.stdout.readline()
- print(output.strip())
+
+ while output := process.stdout.readline():
+ print(output.strip())
# Check if process has ended
if process.poll() is not None: