# result is the OptimizationResult returned by your optimizer call
optimized_prompt = result.prompt
history = result.history
```

Use `optimized_prompt` to update your application and `history` to build custom reports or attach evidence to pull requests.

## Next steps

* Feed the exported prompt back into your application.
* Attach dashboards or screenshots to your PR so reviewers understand the improvement.
* Use [Optimization Studio](/agent_optimization/optimization_studio) for UI-driven runs and comparisons.