Skip to content

Add optimize_anything module with Trace backend integration#74

Merged
chinganc merged 2 commits into
AgentOpt:experimentalfrom
doxav:optimize_anything
Jun 10, 2026
Merged

Add optimize_anything module with Trace backend integration#74
chinganc merged 2 commits into
AgentOpt:experimentalfrom
doxav:optimize_anything

Conversation

@doxav

@doxav doxav commented May 13, 2026

Copy link
Copy Markdown
Collaborator

PLEASE LOOK AT the demo notebook in examples/notebooks/optimize_anything_api.ipynb

  • Introduced the opto.optimize_anything module, providing a GEPA-compatible API for optimization tasks.
  • Implemented core classes including EngineConfig, GEPAConfig, OptimizationState, EvaluationRecord, and GEPAResult.
  • Added logging functionality with context management for evaluation logs.
  • Developed the TraceOptimizerBackend to adapt Trace optimizers to the optimize_anything candidate-proposer protocol.
  • Created unit tests for the new functionality, ensuring proper integration and behavior of the optimization process.
  • Included tests for various evaluators, candidate proposers, and configurations to validate the system's robustness.

- Introduced the `opto.optimize_anything` module, providing a GEPA-compatible API for optimization tasks.
- Implemented core classes including `EngineConfig`, `GEPAConfig`, `OptimizationState`, `EvaluationRecord`, and `GEPAResult`.
- Added logging functionality with context management for evaluation logs.
- Developed the `TraceOptimizerBackend` to adapt Trace optimizers to the optimize_anything candidate-proposer protocol.
- Created unit tests for the new functionality, ensuring proper integration and behavior of the optimization process.
- Included tests for various evaluators, candidate proposers, and configurations to validate the system's robustness.
@chinganc

Copy link
Copy Markdown
Member

@doxav let's put this under opto/features. Then we can merge.

@chinganc

Copy link
Copy Markdown
Member

LGTM

@chinganc chinganc merged commit 83d03e0 into AgentOpt:experimental Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants