Skip to content

Environment configuration

This page documents the configuration objects used to specify the behavior of the environment. To learn about the environment class itself, see the environment class reference page.

sweagent.environment.swe_env.EnvironmentConfig pydantic-model

Bases: BaseModel

Configure data sources and setup instructions for the environment in which we solve the tasks.

Config:

  • extra: 'forbid'

Fields:

deployment pydantic-field

deployment: DeploymentConfig

Deployment options.

name pydantic-field

name: str = 'main'

post_startup_commands pydantic-field

post_startup_commands: list[str] = []

Execute these commands before starting to run the agent but after all other setup steps. They will be executed in the same shell as the agent.

repo pydantic-field

repo: RepoConfig | None = None

Repository options.