{"id":23946,"library":"langchain-azure-dynamic-sessions","title":"LangChain Azure Dynamic Sessions","description":"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.","status":"active","version":"1.0.2","language":"python","source_language":"en","source_url":"https://github.com/langchain-ai/langchain-azure","tags":["langchain","azure","dynamic-sessions","container-apps","tool"],"install":[{"cmd":"pip install langchain-azure-dynamic-sessions","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core LangChain abstractions for tools, chains, etc.","package":"langchain-core","optional":false}],"imports":[{"wrong":"from langchain_azure_dynamic_sessions.tool import AzureDynamicSessionsTool","symbol":"SessionsBashTool","correct":"from langchain_azure_dynamic_sessions import SessionsBashTool"},{"symbol":"SessionsPythonREPLTool","correct":"from langchain_azure_dynamic_sessions import SessionsPythonREPLTool"},{"symbol":"tools","correct":"from langchain_azure_dynamic_sessions import tools"}],"quickstart":{"code":"import os\nfrom langchain_azure_dynamic_sessions.tool import AzureDynamicSessionsTool\n\npool_endpoint = os.environ.get(\"AZURE_CONTAINER_SESSION_POOL_ENDPOINT\", \"https://<your-pool>.region.azurecontainerapps.io\")\ntool = AzureDynamicSessionsTool(pool_endpoint=pool_endpoint)\nresult = tool.run(\"print('Hello from dynamic sessions!')\")\nprint(result)","lang":"python","description":"Initialize the tool with your pool endpoint (set the environment variable or replace the placeholder) and execute a Python snippet."},"warnings":[{"fix":"Upgrade to Python 3.10+ or use a compatible environment.","message":"The library requires Python >=3.10. Attempting to install on older versions will fail due to requires_python constraints.","severity":"gotcha","affected_versions":"<1.0.0"},{"fix":"Always use the full endpoint URL: https://<pool-name>.<region>.azurecontainerapps.io","message":"The pool_endpoint must be a full URL (including https://). Earlier beta versions allowed just the pool name.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Set AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, or use Azure CLI login.","message":"Authentication is handled via Azure Identity (DefaultAzureCredential). If you have multiple credentials, ensure the correct one is used (e.g., via environment variables).","severity":"gotcha","affected_versions":"*"},{"fix":"Replace SessionsPythonTool with AzureDynamicSessionsTool.","message":"The SessionsPythonTool is deprecated in favor of AzureDynamicSessionsTool. New projects should use AzureDynamicSessionsTool.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'-01':39 '-14':40 '1.0.2':35 '2025':38 '3.10':47 '4.0':48 'app':11,32,56 'azur':2,9,30,50 'bash':24 'code':21 'connect':8 'contain':10,31,55 'container-app':54 'current':33 'dynam':3,12,52 'dynamic-sess':51 'ephemer':27 'execut':20 'integr':6 'isol':26 'langchain':1,15,49 'packag':7 'patch':43 'period':42 'provid':17 'python':23,46 'releas':36 'requir':45 'session':4,13,28,53 'snippet':22 'tool':18,57 'updat':44 'version':34 'within':29","created_at":"2026-05-01T08:10:27.421821+00:00","updated_at":"2026-05-01T08:10:27.421821+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.2","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/langchain-ai/langchain-azure","docs":null,"changelog":"https://github.com/langchain-ai/langchain-azure/releases","pypi":"https://pypi.org/project/langchain-azure-dynamic-sessions/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["azure","llm-agents","ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}