Optimizers API

CLI
code
synth-optimizers gepa run --config gepa.tomlsynth-optimizers gepa service --db service.sqlite --host 127.0.0.1 --port 8080
Python
python
from synth_optimizers import GepaRunresult = GepaRun.from_toml("gepa.toml").execute()result.best_candidateresult.manifest_pathresult.frontier_pathresult.normalized_event_feed_pathresult.cache_profile_path
TOML

Shared across optimizer algorithms. GEPA adds [gepa] — see GEPA.

run.run_id
string
run.output_dir
path
run.seed
integer
container.url
string — optional if command set
container.command
string[]
container.cwd
path
container.startup_timeout_seconds
integer
dataset.train_split
string
dataset.heldout_split
string
dataset.train_seeds
integer[]
dataset.heldout_seeds
integer[]
dataset.filters
object
candidate.target_modules
string[]
candidate.candidate_id_prefix
string — optional
seed_candidate.*
string fields — baseline prompts
policy.provider
string
policy.model
string
policy.base_url
string — optional
policy.api_key_env
string — TOML only, not on rollout wire
policy.credential_mode
byok | proxy
cache.mode
off | readwrite | readonly
cache.path
path
cache.namespace
string
Cache
modeBehavior
readwriteLive run; cache rollouts + proposer
readonlyReplay; fail on cache miss
offNo SQLite cache
EnvOverrides
SYNTH_OPTIMIZERS_CACHE_MODEcache.mode
SYNTH_OPTIMIZERS_CACHE_PATHcache.path
SYNTH_OPTIMIZERS_CACHE_NAMESPACEcache.namespace
SYNTH_OPTIMIZERS_CONTAINER_HTTP_TIMEOUT_SECONDScontainer HTTP timeout
Artifacts
FileContents
best_candidate.jsonDeployable prompt overlay
result_manifest.jsonRun summary, paths, cost, usage
candidate_registry.jsonAll candidates + scores
frontier.jsonPareto set
events.jsonlRaw events
events.normalized.jsonlNormalized events
cache_profile.jsonCache hits/misses
workspace.sqliteService mode workspace
Service HTTP

Optional. OpenAPI: gepa-service-v1.yaml

RouteMethod
/healthGET
/runsPOST
/runs/{run_id}GET
/runs/{run_id}/cancelPOST
/runs/{run_id}/artifactsGET
/runs/{run_id}/artifacts/{name}GET
/runs/{run_id}/candidatesGET
/runs/{run_id}/wsGET

Cookbook smoke runs use one-shot gepa run, not the service.