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]
CI fixes
Kilian Lieret4330902ed46d
diff --git a/tests/test_run_single.py b/tests/test_run_single.pyindex 76bf45c0..59e8fff0 100644--- a/tests/test_run_single.py+++ b/tests/test_run_single.py@@ -5,7 +5,7 @@ from pathlib import Pathimport pytestfrom sweagent import CONFIG_DIR, TOOLS_DIR-from sweagent.agent.agents import AgentConfig+from sweagent.agent.agents import DefaultAgentConfigfrom sweagent.agent.models import InstantEmptySubmitModelConfigfrom sweagent.environment.swe_env import EnvironmentConfigfrom sweagent.run.common import BasicCLI@@ -22,7 +22,7 @@ class RaisesExceptionHook(RunHook):@pytest.mark.slowdef test_run_single_raises_exception():- rsc = RunSingleConfig(agent=AgentConfig(model=InstantEmptySubmitModelConfig()))+ rsc = RunSingleConfig(agent=DefaultAgentConfig(model=InstantEmptySubmitModelConfig()))rs = RunSingle.from_config(rsc)rs.add_hook(RaisesExceptionHook())with pytest.raises(ValueError, match="test exception"):@@ -31,7 +31,7 @@ def test_run_single_raises_exception():@pytest.fixturedef agent_config_with_commands():- ac = AgentConfig(model=InstantEmptySubmitModelConfig())+ ac = DefaultAgentConfig(model=InstantEmptySubmitModelConfig())ac.tools.bundles = [Bundle(path=TOOLS_DIR / "registry"),Bundle(path=TOOLS_DIR / "defaults"),@@ -46,7 +46,7 @@ def agent_config_with_commands():@pytest.mark.slowdef test_hidden_tools(tmpdir):- ac = AgentConfig(model=InstantEmptySubmitModelConfig())+ ac = DefaultAgentConfig(model=InstantEmptySubmitModelConfig())ac.tools.env_variables = {"WINDOW": 100}ac.tools.bundles = [Bundle(path=TOOLS_DIR / "registry"),