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]
Raise if human model with multithreading
Kilian Lieret572f8aa35888
diff --git a/sweagent/run/run_batch.py b/sweagent/run/run_batch.pyindex 2b4d2f18..14def27c 100644--- a/sweagent/run/run_batch.py+++ b/sweagent/run/run_batch.py@@ -90,6 +90,10 @@ class RunBatch:hooks: If not specified, the default hooks will be used.num_workers: Number of parallel workers to use. Default is 1 (sequential execution)."""+ if agent_config.model.name in ["human", "human_thought"] and num_workers > 1:+ msg = "Cannot run with human model in parallel"+ raise ValueError(msg)+self.logger = get_logger("swea-run", emoji="🏃")add_file_handler(output_dir / "run_batch.log",