optimize() API
GEPA, Pareto, artifact, and optimizer APIs.
Most Used
axllm::optimize
Convenience optimizer helper that composes AxBootstrapFewShot before AxGEPA and returns an artifact without applying final component changes.
| Field | Value |
|---|---|
| Kind | function |
| Ax concept | optimize |
| API section | Optimizers |
| Form | axllm::optimize(program, student, examples, options, teacher) |
| Returns | optimized artifact |
Important Options
student/clientteacher/reflection clientmetric budgetbootstrap
Examples
auto artifact = axllm::optimize(qa, client, train, axllm::object({}), &reflection);axllm::AxBootstrapFewShot
Few-shot demonstration optimizer that selects successful evaluator rollouts before prompt/component evolution.
| Field | Value |
|---|---|
| Kind | type |
| Ax concept | AxBootstrapFewShot |
| API section | Optimizers |
| Form | axllm::AxBootstrapFewShot(options) |
| Returns | optimizer engine |
Important Options
quality thresholdmax demosmax roundsbatch size
Examples
axllm::AxBootstrapFewShot bootstrap(axllm::object({{"qualityThreshold", 0.7}}));axllm::AxGEPA
Generated GEPA optimizer engine with Core-owned reflection, Pareto, bootstrap, and selector-state behavior.
| Field | Value |
|---|---|
| Kind | type |
| Ax concept | AxGEPA |
| API section | Optimizers |
| Form | axllm::AxGEPA(reflection, options) |
| Returns | optimizer engine |
Important Options
reflection clientbudgetmetriccandidate count
Examples
axllm::AxGEPA engine(reflection_client);axllm::OptimizerEngine
Optimizer boundary consumed by AxGen, AxAgent, and AxFlow optimization helpers.
| Field | Value |
|---|---|
| Kind | interface |
| Ax concept | OptimizerEngine |
| API section | Optimizers |
| Form | axllm::OptimizerEngine::optimize(request, evaluator) |
| Returns | optimized artifact |
Important Options
requestevaluator
axllm::OptimizerEvaluator
Evaluator callback boundary used by generated optimizers.
| Field | Value |
|---|---|
| Kind | interface |
| Ax concept | OptimizerEvaluator |
| API section | Optimizers |
| Form | axllm::OptimizerEvaluator::evaluate(request) |
| Returns | score/evidence result |
Important Options
dataset rowscandidate mapevidence
Full Reference
Open the full C++ reference. This page highlights the optimize symbols most relevant to everyday use.