← Back to Leaderboard
Llangchain-ai

langchain-ai/langchain-azure

Python adapters for LangChain and LangGraph on Azure: models, agent hosting, and state

View on GitHub ↗
AI FrameworkQuickstart ↓
Engineering Health (Methodology)
A+ · 93/100
Maintenance Activity
● Updated today
Latest Release
libs/sqlserver/v1.1.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence20/20
License Clarity20/20
MCPAPI
Total Stars
★ 148
24h Growth
+0
7d Growth
+0
Forks
104

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

langchain-ai/langchain-azure Star History (2024-10-20 - 2026-12-04) ALL-TIME STAR HISTORY (2024-10 – 2026-12) +147 in 775d · avg +0/day 156 78 0 2024-10-20: ★ 12024-12-07: ★ 62025-01-25: ★ 142025-03-15: ★ 332025-05-03: ★ 412025-06-21: ★ 742025-08-09: ★ 822025-09-27: ★ 892025-11-15: ★ 1052026-01-03: ★ 1092026-02-21: ★ 1122026-04-11: ★ 1192026-05-30: ★ 1252026-07-18: ★ 1302026-09-05: ★ 1422026-10-24: ★ 1462026-12-04: ★ 148 ★ 148 2024-10 2025-11 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

This is a Python integration monorepo, not a standalone agent runner. Under libs/, langchain-azure-ai bridges LangChain and LangGraph to Foundry SDK clients, while sibling packages cover compute, Cosmos DB, Dynamic Sessions, SQL Server, PostgreSQL, and Azure Storage. The model adapter can be instantiated directly as AzureAIOpenAIApiChatModel or selected through the azure_ai provider in init_chat_model.

There are two distinct boundaries for agent execution. AgentServiceFactory.create_prompt_agent_node() exposes a Foundry-managed prompt agent as one node in a graph with the required AgentServiceAgentState fields; the surrounding graph does not have to be hosted on Foundry. Alternatively, Foundry can host the whole graph through its hosted-agent interfaces. langchain_azure_compute.graph is a separate execution integration backed by Azure Durable Task Scheduler.

Key Capabilities & Differentiators

AzureAIOpenAIApiChatModel uses OpenAI-compatible Foundry endpoints, with use_responses_api selecting Responses or Chat Completions where the model and endpoint support the chosen API. The model name identifies a deployment, not a bundled model. The AI package also integrates Foundry tools, Content Safety middleware, and Azure AI Search as a vector-store backend.

For state, Foundry-hosted agents can use FoundryCheckpointSaver with Foundry State Store, while Cosmos DB offers both a LangGraph checkpointer and a separate long-term memory store. For execution, the Durable Task Scheduler integration supports compiled LangGraph workflows and LangChain agents with per-step and per-tool fault isolation, automatic worker failover, and durable interrupt() / resume() waits. Checkpoint storage and execution recovery are separate design decisions.

Trade-offs & Limitations

For a service that only calls a Foundry model, the direct Foundry SDK is the simpler option: there is no graph or adapter layer to maintain. For an existing LangGraph application, the repository provides a way to adopt Azure integrations selectively. Calling a managed agent as a node is a smaller migration than moving the entire runtime. This is also the replacement path for Azure adapters in langchain-community, but migrations should verify authentication and behavior for the adapters actually in use.

Portability decreases as the application takes dependencies on Foundry hosting, Azure-backed state, or Durable Task Scheduler. Running the graph in your own environment gives you control over the application process, not independence from remote inference or storage. The SDK is MIT-licensed; service charges and terms, endpoint quotas, identity roles, and data retention remain Azure deployment concerns.

Hardware & Deployment Guide

For a local model integration, install langchain-azure-ai with pip, configure a Foundry project endpoint and model deployment, and use az login with DefaultAzureCredential for local Entra ID authentication. The project-endpoint example requires the Azure AI Developer role; the key-auth example uses endpoint rather than project_endpoint. Prompt-agent tracing with create_prompt_agent(..., trace=True) requires the opentelemetry extra.

Local development still calls Azure over the network; this is not an offline inference stack. For managed hosting, start with samples/hosting/langgraph-hosted-agents/, which covers prerequisites, local runs, and deployment. In the libs/azure-ai release line, v1.3.1 fixed credential-based AzureSearch.from_texts without a key, v1.4.0 documented the Responses and Invocations hosting interfaces, and v1.4.1 disabled model response storage in hosted-agent samples. Treat the last change as sample behavior, not a global retention policy.

Model interface: AzureAIOpenAIApiChatModel supports Responses API and Chat Completions on compatible Foundry endpoints.
Managed agent composition: AgentServiceFactory exposes a Foundry prompt agent as a LangGraph node with an AgentServiceAgentState-compatible schema.
Graph hosting: Foundry samples cover Responses and Invocations interfaces and show how to run an existing graph unchanged.
State and memory: Foundry State Store and Cosmos DB back graph checkpoints; Cosmos DB also offers a separate long-term memory store.
Durable execution: Azure Durable Task Scheduler backs step and tool fault isolation, worker failover, and durable interrupt/resume waits.
Search and safety: langchain-azure-ai includes Azure AI Search vector-store integration, Foundry tools, and Content Safety middleware.
Best For

Teams already using LangChain or LangGraph that want to add Foundry inference, managed agent nodes, or Azure-backed graph state and execution without moving every component at once.

Skip If

You need fully offline inference, want to avoid Azure service dependencies, or only need a thin client for one Foundry endpoint.

Reviewed on 2026-11-30 · Grounded in GitHub README, root file tree & releases · Newer release libs/sqlserver/v1.1.0 (2026-12-02) shipped after this reviewMethodology

Quick Start & Installation

MCPAPI
pip install -U langchain-azure-ai

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
langchain-azure ★148—Jupyter NotebookMITPython adapters for LangChain and LangGraph on Azure: models, agent hosting, and
browser-use122.7k+477PythonMITPython REPL and CDP for adaptive browser automation
ag-ui22.6k+611TypeScriptMITA typed event protocol and SDKs that connect agent backends to interactive apps
ruflo82.8k+342TypeScriptMITA TypeScript orchestration layer for coding agents, with shared memory and MCP

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/langchain-ai/langchain-azure.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

langchain-ai/langchain-azure Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about langchain-azure

Does calling a Foundry agent require moving my whole LangGraph application to Azure?

No. AgentServiceFactory lets an existing graph call a managed Foundry agent as a node, provided its state schema includes the AgentServiceAgentState fields. Hosting the graph itself on Foundry is a separate deployment choice, with a sample that runs an existing graph without changing its implementation.

Do I need a GPU, and how should I size the runtime?

The Foundry model path calls a remote endpoint and does not require a local inference GPU or dedicated VRAM. Size the Python application or workers for concurrent requests, graph state, and any tools that execute locally. Endpoint quotas and model capacity are separate from application host sizing.

Can I use the SDK commercially or self-host it for compliance?

The SDK is MIT-licensed and can be used commercially, including from application code you run yourself. That license does not grant rights to run Foundry or other managed Azure services offline. For a compliance review, assess service terms, identity permissions, and retention separately for model responses, graph checkpoints, and long-term memory.

When is this preferable to using the Foundry SDK directly?

A direct Foundry SDK client is the simpler starting point for a service that only sends model requests. This repository earns its place when you need LangChain model interfaces, managed agents as graph nodes, or Azure-backed state and execution for LangGraph. If you use older Azure integrations from langchain-community, validate the specific adapters and authentication flows you rely on before migrating.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining langchain-ai/langchain-azure? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature langchain-ai/langchain-azure on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare