Python: updated declarative samples and handling of non-pydantic response formats (#5022)

* updated declarative samples and handling of non-pydantic response formats

* fixed from comments

* update docstring
This commit is contained in:
Eduard van Valkenburg
2026-04-01 19:16:00 +00:00
committed by GitHub
parent 6acab3d1d6
commit 519bb0cb2b
21 changed files with 370 additions and 90 deletions
@@ -18,7 +18,7 @@ Prerequisites:
- `pip install agent-framework-foundry agent-framework-declarative --pre`
- Set the following environment variables in a .env file or your environment:
- FOUNDRY_PROJECT_ENDPOINT
- AZURE_OPENAI_MODEL
- FOUNDRY_MODEL
"""
@@ -31,7 +31,7 @@ instructions: Specialized diagnostic and issue detection agent for systems with
description: A agent that performs diagnostics on systems and can escalate issues when critical errors are detected.
model:
id: =Env.AZURE_OPENAI_MODEL
id: =Env.FOUNDRY_MODEL
"""
# create the agent from the yaml
async with (