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.

Add more coding challenge (#254)

merwanehamadifb13a83d152b
diff --git a/agbenchmark/challenges b/agbenchmark/challenges
index 00d5390ece..c57e0bf36a 160000
--- a/agbenchmark/challenges
+++ b/agbenchmark/challenges
@@ -1 +1 @@
-Subproject commit 00d5390ece70659d5b1afe511856fbb56dc0caf4
+Subproject commit c57e0bf36ac52b5586821503582724967677816f
diff --git a/agbenchmark/utils/challenge.py b/agbenchmark/utils/challenge.py
index c7590cec40..c8a625600e 100644
--- a/agbenchmark/utils/challenge.py
+++ b/agbenchmark/utils/challenge.py
@@ -96,7 +96,10 @@ class Challenge(ABC):
capture_output=True,
text=True,
)
- files_contents.append(result.stdout)
+ if "error" in result.stderr:
+ print(result.stderr)
+ assert False, result.stderr
+ files_contents.append(f"Output: {result.stdout}\n")
else:
with open(file_path, "r") as f:
files_contents.append(f.read())