Python Agent Optimizer in Foundry Patterns
Use the Azure SDK optimization package and a local baseline folder. The baseline is file-based; call load_config() without code-level fallback parameters.
Install and Import
Add azure-ai-agentserver-optimization to requirements.txt or the project dependency file:
text
azure-ai-agentserver-optimizationImport from the SDK namespace:
python
from azure.ai.agentserver.optimization import load_configBaseline Folder
Create .agent_configs/baseline/ in the agent's service source directory (beside the entry point):
text