Run Optimization
Trigger a 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.
Optional filesystem path to save the optimized program.
GEPA optimization intensity level.
Fraction of examples to use for training (remainder used for validation).
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.
Module slug used for this optimization run, when server-side dispatch was used.
Error message when the optimization run failed.