Skip to content

Add optimize_anything module with Trace backend integration#74

Open
doxav wants to merge 1 commit into
AgentOpt:experimentalfrom
doxav:optimize_anything
Open

Add optimize_anything module with Trace backend integration#74
doxav wants to merge 1 commit into
AgentOpt:experimentalfrom
doxav:optimize_anything

Conversation

@doxav
Copy link
Copy Markdown
Collaborator

@doxav doxav commented May 13, 2026

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.
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.

1 participant