An integration package connecting Azure Container Apps dynamic sessions with LangChain. It provides tools to execute code snippets (Python, bash) in isolated, ephemeral sessions within Azure Container Apps. Current version 1.0.2, released on 2025-01-14, with periodic patch updates. Requires Python >=3.10, <4.0.
pip install langchain-azure-dynamic-sessionsVerified import paths — ran on the pinned version, not inferred.
Initialize the tool with your pool endpoint (set the environment variable or replace the placeholder) and execute a Python snippet.
Upgrade to Python 3.10+ or use a compatible environment.
Always use the full endpoint URL: https://<pool-name>.<region>.azurecontainerapps.io
Set AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, or use Azure CLI login.
Replace SessionsPythonTool with AzureDynamicSessionsTool.