Repository navigation
.NET: Add Container Apps Dynamic Sessions sample - #9009
Naveen Chatlapalli (1aifanatic) wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
External REST compatibility remains unconfirmed, and Python endpoint validation needs correction.
Review effort: Balanced
Findings: 1
What changed in this PR
Adds .NET and Python examples of running agent-generated Python in Azure Container Apps Dynamic Sessions, addressing #6863.
Changes:
- Exposes remote code execution through function tools with per-run session ownership.
- Documents authentication, setup, execution limits, and lifecycle.
- Registers samples in indexes and the .NET solution.
| File | Description |
|---|---|
| python/samples/02-agents/tools/README.md | Links the Python sample. |
| python/samples/02-agents/tools/container_apps_dynamic_sessions.py | Implements the Python function-tool example. |
| dotnet/samples/02-agents/Agents/README.md | Links the .NET sample. |
| dotnet/samples/02-agents/Agents/Agent_ContainerAppsDynamicSessions/README.md | Documents setup and session ownership. |
| dotnet/samples/02-agents/Agents/Agent_ContainerAppsDynamicSessions/Program.cs | Implements the .NET function-tool example. |
| dotnet/samples/02-agents/Agents/Agent_ContainerAppsDynamicSessions/Agent_ContainerAppsDynamicSessions.csproj | Defines the sample project and dependencies. |
| dotnet/agent-framework-dotnet.slnx | Registers the .NET sample project. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
Naveen Chatlapalli (@1aifanatic) Thanks for the contribution. This PR currently mixes .NET and Python changes. Please either update this PR so it contains only one language and handle the other language separately if still desired, or close this PR and open separate .NET and Python PRs. |
|
Updated in ff7facf: this PR now contains only the .NET Dynamic Sessions sample, solution entry, and sample index. The Python sample is in #9114. Both descriptions link the counterpart, and I verified the changed-file list contains only dotnet paths. The Python companion passes Ruff, Pyright, and the HTTP/session/error mock checks; the .NET sample is unchanged from its successful build. |

Motivation & Context
Agent Framework needs a .NET example of agent-generated Python running in an Azure Container Apps Dynamic Sessions pool.
Description & Review Guide
Related Issue
Addresses the .NET portion of #6863. The Python implementation is tracked separately in #9114, following the maintainer's request to keep each PR to one language.
Contribution Checklist