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]
Fix warnings about simple_parsing import paths (#176)
Kilian Liereteb72968a4da0
diff --git a/run.py b/run.pyindex 98f6bc00..1b3d3bed 100644--- a/run.py+++ b/run.py@@ -11,7 +11,8 @@ from getpass import getuserfrom pathlib import Pathfrom rich.logging import RichHandlerfrom simple_parsing import parse-from simple_parsing.helpers import FrozenSerializable, FlattenedAccess+from simple_parsing.helpers.serialization.serializable import FrozenSerializable+from simple_parsing.helpers.flatten import FlattenedAccessfrom sweagent import (Agent,AgentArguments,diff --git a/sweagent/agent/agents.py b/sweagent/agent/agents.pyindex f3a37342..98c91478 100644--- a/sweagent/agent/agents.py+++ b/sweagent/agent/agents.py@@ -4,7 +4,9 @@ import loggingfrom dataclasses import dataclassfrom pathlib import Path-from simple_parsing.helpers import field, FrozenSerializable, FlattenedAccess+from simple_parsing.helpers.fields import field+from simple_parsing.helpers.serialization.serializable import FrozenSerializable+from simple_parsing.helpers.flatten import FlattenedAccessfrom sweagent.agent.commands import Command, ParseCommandfrom sweagent.agent.history_processors import HistoryProcessorfrom sweagent.agent.models import (diff --git a/sweagent/agent/commands.py b/sweagent/agent/commands.pyindex be808485..494aac4b 100644--- a/sweagent/agent/commands.py+++ b/sweagent/agent/commands.py@@ -5,7 +5,7 @@ from abc import abstractmethodfrom dataclasses import dataclassfrom pathlib import Pathfrom typing import Dict, List, Optional-from simple_parsing.helpers import FrozenSerializable+from simple_parsing.helpers.serialization.serializable import FrozenSerializable@dataclass(frozen=True)diff --git a/sweagent/agent/models.py b/sweagent/agent/models.pyindex 01239f11..8660741a 100644--- a/sweagent/agent/models.py+++ b/sweagent/agent/models.py@@ -8,7 +8,7 @@ from collections import defaultdictfrom anthropic import Anthropic, HUMAN_PROMPT, AI_PROMPTfrom dataclasses import dataclass, fieldsfrom openai import BadRequestError, OpenAI, AzureOpenAI-from simple_parsing.helpers import FrozenSerializable, Serializable+from simple_parsing.helpers.serialization.serializable import FrozenSerializable, Serializablefrom sweagent.agent.commands import Commandfrom tenacity import (retry,diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex 0fe193ea..4db412a5 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -16,7 +16,7 @@ from ghapi.all import GhApifrom dataclasses import dataclassfrom git import Repofrom rich.logging import RichHandler-from simple_parsing.helpers import FrozenSerializable+from simple_parsing.helpers.serialization.serializable import FrozenSerializableimport yamlfrom sweagent.environment.utils import (copy_file_to_container,