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.
fixing combined charts issue
Silen Naihinf8a01ef70a86
diff --git a/agbenchmark/agent_interface.py b/agbenchmark/agent_interface.pyindex adcd29447b..1532bd1e0f 100644--- a/agbenchmark/agent_interface.py+++ b/agbenchmark/agent_interface.py@@ -54,7 +54,7 @@ def run_agent(output = process.stdout.readline()print(output.strip())except Exception as e:- print("Error reading stdout", e)+ continue# Check if process has ended, has no more output, or exceeded timeoutif process.poll() is not None or (time.time() - start_time > timeout):diff --git a/agbenchmark/reports/processing/gen_combined_chart.py b/agbenchmark/reports/processing/gen_combined_chart.pyindex ca6ede7d7f..0cc96d91a0 100644--- a/agbenchmark/reports/processing/gen_combined_chart.py+++ b/agbenchmark/reports/processing/gen_combined_chart.py@@ -19,7 +19,9 @@ def generate_combined_chart() -> None:reports_data = get_reports_data(str(all_agents_path))- categories = all_agent_categories(reports_data, combined=True)+ categories = all_agent_categories(reports_data)++ print("Agent categories:", categories)# Count the number of directories in this directorynum_dirs = len([f for f in combined_charts_folder.iterdir() if f.is_dir()])diff --git a/agbenchmark/reports/processing/process_report.py b/agbenchmark/reports/processing/process_report.pyindex 2c5f3f59c7..ac8729af69 100644--- a/agbenchmark/reports/processing/process_report.py+++ b/agbenchmark/reports/processing/process_report.py@@ -31,17 +31,14 @@ def get_reports_data(report_path: str) -> dict[str, Any]:return reports_data-def get_agent_category(- report: Report, combined: Optional[bool] = None-) -> dict[str, Any]:+def get_agent_category(report: Report) -> dict[str, Any]:categories: dict[str, Any] = {}def get_highest_category_difficulty(data: Test) -> None:for category in data.category:if category == "interface" or category == "iterate":continue- if combined:- categories.setdefault(category, 0)+ categories.setdefault(category, 0)if data.metrics.success:num_dif = STRING_DIFFICULTY_MAP[data.metrics.difficulty]if num_dif > categories.setdefault(category, 0):@@ -57,13 +54,11 @@ def get_agent_category(return categories-def all_agent_categories(- reports_data: dict[str, Any], combined: Optional[bool] = None-) -> dict[str, Any]:+def all_agent_categories(reports_data: dict[str, Any]) -> dict[str, Any]:all_categories: dict[str, Any] = {}for name, report in reports_data.items():- categories = get_agent_category(report, combined)+ categories = get_agent_category(report)all_categories[name] = categoriesreturn all_categoriesdiff --git a/agent/SuperAGI b/agent/SuperAGIindex 646f33a761..b0318053b6 160000--- a/agent/SuperAGI+++ b/agent/SuperAGI@@ -1 +1 @@-Subproject commit 646f33a761d8332821aeb4a5dc167b619d907c50+Subproject commit b0318053b6cbe357f2e020fe0f1275a2cb3da767