Sweeper Quickstart

Run a backend-neutral sweep with an injected replay runtime

以 Markdown 格式查看

Experimental. Sweeper is intended for evaluation and feedback, not production capacity planning.

Install AISimulate:

python3 -m pip install "aisimulate==0.12.0"

Sweeper requires a RunnerFactory supplied by the application that owns replay execution:

from aisimulate.sweeper import SmartSearchConfig, Sweeper
config = SmartSearchConfig.from_yaml("sweep.yaml")
sweeper = Sweeper(runner_factory=my_runner_factory, show_progress=False)
candidates = sweeper.run(config)

Set sweep.parallel_evals above one to use spawned worker processes. Scripts using that mode must guard their entrypoint with if __name__ == "__main__":.

Next, read the Tutorial for the complete configuration flow or Sweep Configuration Providers to add feature-specific search dimensions.