Optimize Workflow
Use this after azd setup and scaffold review are complete.
1. Prepare context
- Resolve the hosted agent with azd Setup.
- If SDK wiring or
.agent_configs/baseline/is missing, run Scaffold Workflow first. - If scaffolding changed files, stop and ask the user to review before optimization.
- Ensure
eval.yamlexists using eval.yaml Guidance, generate it withazd ai agent eval generate, or ask whether to use built-in optimize defaults. - Before setting
--optimize-modeloroptions.optimization_model, verify the project has an existing deployment from the allowed optimizer list:GPT-5,GPT-5.1,GPT-5.2,GPT-5.4,GPT-5.5,DeepSeek-V4-Pro, orDeepSeek-V-3.2.
When evaluation inputs are not already selected, generate them from a reviewed seed dataset or regenerate defaults:
bash