Skip to content

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 print_config from RunSingle config

carlosejimenez9a6ac419357c
diff --git a/sweagent/run/run_single.py b/sweagent/run/run_single.py
index c640ff15..30e04f51 100644
--- a/sweagent/run/run_single.py
+++ b/sweagent/run/run_single.py
@@ -40,7 +40,6 @@ import sys
from pathlib import Path
from typing import Self
-import yaml
from pydantic import BaseModel, ConfigDict, Field
from pydantic_settings import BaseSettings
@@ -79,9 +78,6 @@ class RunSingleConfig(BaseSettings, cli_implicit_flags=True):
actions: RunSingleActionConfig = Field(default_factory=RunSingleActionConfig)
- print_config: bool = False
- """Print config at the beginning of the run."""
-
env_var_path: Path | None = None
"""Path to a .env file to load environment variables from."""
@@ -142,10 +138,6 @@ class RunSingle:
@classmethod
def from_config(cls, config: RunSingleConfig) -> Self:
- logger = get_logger("swea-run", emoji="🏃")
- if config.print_config:
- config_str = yaml.dump(config.model_dump())
- logger.info(f"Config:\n {config_str}")
load_environment_variables(config.env_var_path)
config.set_default_output_dir()
config.output_dir.mkdir(parents=True, exist_ok=True)