Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Inspector: Hide full list of results

Kilian Lieret3c519e78b7b1
diff --git a/sweagent/inspector/server.py b/sweagent/inspector/server.py
index f7900c9a..3842ad69 100644
--- a/sweagent/inspector/server.py
+++ b/sweagent/inspector/server.py
@@ -125,8 +125,8 @@ def append_results(traj_path: Path, instance_id: str, content, results, results_
status.append(f"Check {results_file} for the most accurate evaluation results.")
status.append("")
status.append(f"Instance ID: {instance_id}")
- status.append("Based on results:")
- status.append(json.dumps(results, indent=4))
+ # status.append("Based on results:")
+ # status.append(json.dumps(results, indent=4))
eval_report = {
"role": "Evaluation Report",
"content": "\n".join([*stats, *status]),
diff --git a/tests/test_agent.py b/tests/test_agent.py
index 203242b5..d07a8cbc 100644
--- a/tests/test_agent.py
+++ b/tests/test_agent.py
@@ -246,7 +246,7 @@ def test_function_calling(dummy_env: SWEEnv, function_calling_agent: Agent, tmp_
}
a.model = PredeterminedTestModel([valid_response]) # type: ignore
a.setup(dummy_env, EmptyProblemStatement())
- dummy_env.deployment.runtime.run_in_session_outputs = [
+ dummy_env.deployment.runtime.run_in_session_outputs = [ # type: ignore
BashObservation(output="file1 file2"),
BashObservation(output="file1 file2"), # TODO, there's actually a bug in swe-rex, requiring two observations
] # type: ignore