langchain-azure-ai
An integration package to support Microsoft Foundry (formerly Azure AI) capabilities in LangChain/LangGraph ecosystem.
What it is and what it does
langchain-azure-ai bridges LangChain and LangGraph applications to Microsoft Foundry services, enabling developers to use Azure-hosted models, agents, and AI tools within the LangChain ecosystem. It provides chat model bindings for OpenAI-compatible endpoints, integration with Azure AI Agent Service for running agents in Foundry infrastructure, vector store support via azure-search-documents, and access to specialized tools like Document Intelligence and Content Understanding.
The package supports multiple deployment patterns: local development with API keys, production use with azure-identity credentials, and hosting of compiled LangGraph graphs on Foundry infrastructure using Responses or Invocations protocols. It also includes auto-tracing to Azure Application Insights via OpenTelemetry, allowing observability of LangChain and LangGraph execution. Optional extras provide access to specialized capabilities without bloating the base installation.
Use it for:
- Build LangChain applications that invoke Azure OpenAI or other Foundry models for chat completions and tool use.
- Compose multi-agent workflows using LangGraph with agents running in Azure AI Agent Service.
- Index and search documents using azure-search-documents as a vector store within LangChain retrieval chains.
- Extract structured data from documents using azure-ai-projects tools as LangChain tools.
- Host compiled LangGraph graphs on Microsoft Foundry with conversation state management and transcript history.
- Monitor and trace LangChain/LangGraph execution in production via Azure Application Insights integration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Microsoft Foundry (Azure AI) capabilities into LangChain and LangGraph, providing access to chat models, agents, tools, vector stores, and tracing through a unified Python interface.
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. It is the official integration layer for LangChain users targeting Microsoft Foundry services. Install it if you are building LangChain or LangGraph applications on Azure infrastructure or need access to Azure AI services as tools.
Install
langchain-azure-ai on PyPI
pip
pip install langchain-azure-aiuv
uv add langchain-azure-aipoetry
poetry add langchain-azure-aiInstalling langchain-azure-ai
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with a recent release 45 days ago. Depends on 12 runtime packages including langchain, azure-ai-projects, and azure-identity, all standard ecosystem components.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most production deployments.
Quickstart
pip install langchain-azure-ai
from langchain_azure_ai.chat_models import AzureAIOpenAIApiChatModel
model = AzureAIOpenAIApiChatModel(
endpoint="https://{your-resource-name}.services.ai.azure.com/openai/v1",
credential="your-api-key",
model="gpt-5"
)
model.invoke(messages)
Requires Python 3.10 or later; requires valid Azure credentials and endpoint URL to Microsoft Foundry services.
Verify before relying
- Whether all 12 runtime dependencies are always required or if some are optional based on feature selection
- Performance characteristics and latency expectations when calling remote Azure services
- Specific Azure service quotas or rate limits that may affect usage at scale
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 12 — aiohttp, azure-ai-contentunderstanding, azure-ai-projects, azure-ai-contentsafety, azure-core, azure-identity, azure-search-documents, langchain, langchain-openai, langgraph, numpy, six |
| Maintenance | actively maintained — 45 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 916,043/month — #4,732 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: langchain_azure_ai-1.2.8-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
langchain-azure-dynamic-sessionsProvides LangChain integration tools to execute…
permissive · top 15,000 on PyPI
agent-framework-azure-aiIntegrates Azure AI Foundry memory capabilities…
permissive · top 15,000 on PyPI
azure-ai-projectsProvides a Python client for Microsoft Foundry…
permissive · top 5,000 on PyPI
agent-framework-foundryProvides Microsoft Foundry integrations for the…
permissive · top 15,000 on PyPI
azure-ai-contentunderstandingExtracts structured content from documents,…
unclear · top 5,000 on PyPI
langchain-neo4jIntegrates Neo4j graph databases with…
permissive · top 15,000 on PyPI
langchain-tavilyIntegrates Tavily's web search and content…
permissive · top 15,000 on PyPI
databricks-ai-bridgeProvides a shared Python API layer for building…
unclear · top 5,000 on PyPI
uipath-langchainBuilds and deploys LangGraph agents to UiPath…
unclear · top 5,000 on PyPI