Run batch
    
              Bases: BaseSettings
class-attribute
      instance-attribute
  
instances: BatchInstanceSourceConfig = Field(description='Instances to run.')
class-attribute
      instance-attribute
  
agent: AgentConfig = Field(description='Agent options.')
class-attribute
      instance-attribute
  
output_dir: Path = Field(default=Path('DEFAULT'), description='Output directory.')
class-attribute
      instance-attribute
  
suffix: str = ''
Suffix to add to the output directory. Only used if output_dir is DEFAULT.
class-attribute
      instance-attribute
  
raise_exceptions: bool = False
Raise exceptions instead of skipping instances.
class-attribute
      instance-attribute
  
redo_existing: bool = False
Do not skip instances that already have a trajectory.
class-attribute
      instance-attribute
  
env_var_path: Path | None = None
Path to a .env file to load environment variables from.
class-attribute
      instance-attribute
  
num_workers: int = Field(default=1)
Number of parallel workers to use.
class-attribute
      instance-attribute
  
random_delay_multiplier: float = 0.3
We will wait for a random amount of time between 0 and random_delay_multiplier
times the number of workers at the start of each instance. This is to avoid any
potential race condition or issues with bottlenecks, e.g., when running on a platform
with few CPUs that cannot handle the startup of all containers in time.
class-attribute
      instance-attribute
  
progress_bar: bool = True
Whether to show a progress bar. Progress bar is never shown for human models. Progress bar is always shown for multi-worker runs.
set_default_output_dir() -> None
Source code in sweagent/run/run_batch.py
              | 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |  | 
evaluate_and_redo_existing() -> Self
Source code in sweagent/run/run_batch.py
              | 119 120 121 122 123 124 125 126 127 128 129 130 |  | 
 
    