v1
latestOpenAPI 3.1.02026-07-175793186.0 KBRun Optimization
Trigger a blocking GEPA prompt optimization run.
Request body
Relative filesystem path to the dataset file.
Registered dataset identifier to optimize against.
DSPy program specification string to optimize in module:attr form. Required when module_slug is not provided.
Registered module slug for server-side dispatch. When provided, program_spec is auto-resolved from the module registry.
Bundled or mounted Fleet skill name to optimize as a markdown skill artifact.
Relative path to a SKILL.md-compatible markdown file to optimize.
Optional offline trace bundle paths available to the RLM-GEPA instruction proposer.
Optional LLM provider profile id for the GEPA proposer/reflection model.
Optional provider-native model id for the GEPA proposer/reflection model.
Optional filesystem path to save the optimized program.
Optimization intensity level.
Optional GEPA metric-call budget override for short offline smoke runs.
Fraction of examples to use for training (remainder used for validation).
Optimizer backend to use. GEPA is the only supported optimizer.
Response
Successful Response
Whether the optimization run completed successfully.
Optimizer backend that was used.
DSPy program specification that was optimized.
Number of training examples used.
Number of validation examples used.
Validation score from the optimized program, when available.
Filesystem path where the optimized program was saved.
Filesystem path to the optimization manifest, when available.
Short summary of validation feedback from the GEPA run.
Module slug used for this optimization run, when server-side dispatch was used.
LLM provider profile id used for GEPA reflection/proposal, when selected.
Model id used for GEPA reflection/proposal, when selected.
Distilled trace bundle used by the RLM-GEPA proposer.
Error message when the optimization run failed.