Overview
The Azure Container Apps dynamic sessions based code Interpreter tool is a tool that allows you to execute and run development environments using the AI Agents. The user sends code to run; the agent executes it in an Azure dynamic session and returns the output.Getting Started
Simple Usage
- Install dependencies (see Overview above)
- Set required API keys in your environment
- Run the agent example in Overview
How It Works
Best Practices
Keep sessions short-lived
Keep sessions short-lived
Azure Container Apps dynamic sessions are ephemeral — treat each run as stateless and pass all inputs explicitly.
Validate untrusted code
Validate untrusted code
Only run code the agent generated from trusted instructions. Sandbox limits protect the host, not your data.
Handle timeouts
Handle timeouts
Long-running code can hit the session timeout. Wrap execution in error handling so the agent recovers gracefully.
Related Tools
Python
Run Python code
Shell
Shell commands
Bearly Code Interpreter
Cloud code execution

