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]
Remove gym inheritence
Kilian Lieretc5b8c8513c15
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex 1543c32b..03baa495 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -7,7 +7,6 @@ import shlexfrom pathlib import PurePathfrom typing import Any, Self-import gymnasium as gymfrom pydantic import BaseModel, Fieldfrom swerex.deployment import get_deploymentfrom swerex.deployment.abstract import AbstractDeployment@@ -44,8 +43,7 @@ class EnvironmentConfig(BaseModel):self.deployment = DockerDeploymentConfig()-# todo: Do we really need to inherit from gym.Env?-class SWEEnv(gym.Env):+class SWEEnv:"""Gym environment for SWE-bench. This class should handle all communication with the docker container."""name = "swe_main"