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]
Enh: Forbid deployment extra args
Kilian Lieret567e68f034ff
diff --git a/sweagent/environment/config/deployment.py b/sweagent/environment/config/deployment.pyindex ac95a09a..7e7085d3 100644--- a/sweagent/environment/config/deployment.py+++ b/sweagent/environment/config/deployment.py@@ -1,6 +1,6 @@from typing import Literal-from pydantic import BaseModel+from pydantic import BaseModel, ConfigDictfrom swerex.deployment import get_deploymentfrom swerex.deployment.abstract import AbstractDeployment@@ -18,6 +18,8 @@ class DummyDeploymentConfig(BaseModel):type: Literal["dummy"] = "dummy""""Discriminator for (de)serialization/CLI. Do not change."""+ model_config = ConfigDict(extra="forbid")+def get_deployment(self) -> AbstractDeployment:return _get_deployment(self)@@ -26,6 +28,8 @@ class LocalDeploymentConfig(BaseModel):type: Literal["local"] = "local""""Discriminator for (de)serialization/CLI. Do not change."""+ model_config = ConfigDict(extra="forbid")+def get_deployment(self) -> AbstractDeployment:return _get_deployment(self)@@ -43,6 +47,8 @@ class DockerDeploymentConfig(BaseModel):type: Literal["docker"] = "docker""""Discriminator for (de)serialization/CLI. Do not change."""+ model_config = ConfigDict(extra="forbid")+def get_deployment(self) -> AbstractDeployment:return _get_deployment(self)@@ -58,6 +64,8 @@ class ModalDeploymentConfig(BaseModel):type: Literal["modal"] = "modal""""Discriminator for (de)serialization/CLI. Do not change."""+ model_config = ConfigDict(extra="forbid")+def get_deployment(self) -> AbstractDeployment:return _get_deployment(self)