fermilink.exploop.main module

class fermilink.exploop.main.ExploopConfig[source]

Bases: object

ExploopConfig(repo_dir: ‘Path’, user_prompt: ‘str’, prompt_file: ‘str | None’ = None, max_iterations: ‘int’ = 10, wait_seconds: ‘float’ = 1.0, max_wait_seconds: ‘float’ = 6000.0, sandbox: ‘str | None’ = None)

__init__(repo_dir, user_prompt, prompt_file=None, max_iterations=10, wait_seconds=1.0, max_wait_seconds=6000.0, sandbox=None)
Parameters:
  • repo_dir (Path)

  • user_prompt (str)

  • prompt_file (str | None)

  • max_iterations (int)

  • wait_seconds (float)

  • max_wait_seconds (float)

  • sandbox (str | None)

Return type:

None

max_iterations: int = 10
max_wait_seconds: float = 6000.0
prompt_file: str | None = None
repo_dir: Path
sandbox: str | None = None
user_prompt: str
wait_seconds: float = 1.0
fermilink.exploop.main.build_exploop_prompt(*, repo_dir, user_prompt, artifact_changes)[source]
Parameters:
  • repo_dir (Path)

  • user_prompt (str)

  • artifact_changes (list[dict[str, object]])

Return type:

str

fermilink.exploop.main.cmd_exploop(args)[source]
Parameters:

args (Namespace)

Return type:

int

fermilink.exploop.main.main(argv=None)[source]
Parameters:

argv (list[str] | None)

Return type:

int

fermilink.exploop.main.run_exploop(config)[source]

Run the minimal experimental measurement loop.

Parameters:

config (ExploopConfig)

Return type:

int