Repository navigation
Python: Add Container Apps Dynamic Sessions sample - #9114
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The preview REST contract and live Azure integration still need independent verification.
Review effort: Balanced
Findings: None
What changed in this PR
Adds an Agent Framework Python example for executing agent-generated code in Azure Container Apps Dynamic Sessions, addressing the Python portion of #6863.
Changes:
- Adds a function tool with per-run session ownership, fresh authentication tokens, execution/output limits, and HTTP error handling.
- Documents setup requirements and links the sample from the tools index.
| File | Description |
|---|---|
python/samples/02-agents/tools/README.md |
Adds the sample link. |
python/samples/02-agents/tools/container_apps_dynamic_sessions.py |
Implements the cloud execution tool and documents setup and safety considerations. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
The request contract was rechecked against Microsoft's 2025-10-02-preview Execute reference: the execution route/query, synchronous inline request fields, token scope, and response structure match the sample. The local HTTP mock verifies the client request and session/error behavior. Live pool/model execution has not been run and remains an integration-validation limitation, as stated in the PR description. |
Motivation & Context
Agent Framework needs a Python example that runs agent-generated code in an Azure Container Apps Dynamic Sessions pool.
Description & Review Guide
Related Issue
Addresses the Python portion of #6863. The .NET contribution remains in #9009; the two PRs are separate language implementations, following the maintainer's request there.
Contribution Checklist