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]
Use default trajectories dir according to ENV (#1054)
Volker Seeker8a8c8513fe12
diff --git a/sweagent/run/run_batch.py b/sweagent/run/run_batch.pyindex 5b1575e1..6f9684ec 100644--- a/sweagent/run/run_batch.py+++ b/sweagent/run/run_batch.py@@ -47,6 +47,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDictfrom rich.live import Livefrom swerex.deployment.hooks.status import SetStatusDeploymentHook+from sweagent import TRAJECTORY_DIRfrom sweagent.agent.agents import AgentConfig, get_agent_from_configfrom sweagent.agent.hooks.status import SetStatusAgentHookfrom sweagent.environment.hooks.status import SetStatusEnvironmentHook@@ -112,7 +113,7 @@ class RunBatchConfig(BaseSettings, cli_implicit_flags=False):if config_file != "no_config":config_file = Path(config_file).stemsuffix = f"__{self.suffix}" if self.suffix else ""- self.output_dir = Path.cwd() / "trajectories" / user_id / f"{config_file}__{model_id}___{source_id}{suffix}"+ self.output_dir = TRAJECTORY_DIR / user_id / f"{config_file}__{model_id}___{source_id}{suffix}"@model_validator(mode="after")def evaluate_and_redo_existing(self) -> Self: