azure-ai-agents
Microsoft Corporation Azure AI Agents Client Library for Python
What it is and what it does
Azure AI Agents is a Python client library for building and managing AI agents on Microsoft's Azure AI Agents Service. It provides synchronous and asynchronous APIs to create agents, manage threads and messages, and orchestrate agent runs with support for multiple LLM providers and a rich tool ecosystem (file search, code interpretation, function calling, Bing grounding, Azure AI Search, OpenAPI integration). The library handles authentication via Azure Entra ID and integrates with Azure AI Foundry projects for resource management.
The package is designed for developers building generative AI applications that need agentic capabilities—agents that can reason, use tools, and interact with external systems. It abstracts away the complexity of the underlying Azure AI Agents Service, offering both synchronous and asynchronous clients. While it can be used independently, the documentation recommends pairing it with azure-ai-projects for simplified access to advanced features like agent lifecycle management, model enumeration, and observability.
Use it for:
- Build a customer support agent that searches internal documentation and executes code to troubleshoot issues.
- Create a data analysis agent that interprets code, processes files, and retrieves information from Azure AI Search.
- Develop a multi-turn conversational agent with function calling to integrate with external APIs and business logic.
- Deploy an agent that grounds responses using Bing search results for real-time information retrieval.
- Implement an agent that manages file uploads and searches over document collections using vector stores.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Build and deploy AI agents on Azure using models from OpenAI, Microsoft, and other LLM providers, with support for tools like file search, code interpretation, and function calling.
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and addresses a clear need for developers building agents on Azure. It supports current Python versions (3.9+), integrates with standard Azure authentication patterns, and offers both sync and async APIs. No known security vulnerabilities. Suitable for production use if you are committed to the Azure ecosystem; not a good fit if you need multi-cloud or on-premises agent infrastructure.
Install
azure-ai-agents on PyPI
pip
pip install azure-ai-agentsuv
uv add azure-ai-agentspoetry
poetry add azure-ai-agentsInstalling azure-ai-agents
Before you install
Low install friction with three lightweight runtime dependencies (isodate, azure-core, typing-extensions). Active maintenance with recent releases; last commit 2026-08-14 and 5588 repository stars indicate ongoing development.
License in practice
MIT License permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice in distributions.
Quickstart
pip install azure-ai-agents
import os
from azure.ai.agents import AgentsClient
from azure.identity import DefaultAzureCredential
agents_client = AgentsClient(
endpoint=os.environ["PROJECT_ENDPOINT"],
credential=DefaultAzureCredential(),
)
agent = agents_client.create_agent(
model=os.environ["MODEL_DEPLOYMENT_NAME"],
name="my-agent",
instructions="You are helpful agent",
)
Requires Python 3.9 or later, an Azure subscription, an Azure AI Foundry project, and Entra ID authentication via DefaultAzureCredential (which requires Azure CLI and az login).
Verify before relying
- Whether the package works standalone or if azure-ai-projects is effectively required for production use cases.
- Performance characteristics and latency expectations for agent creation and message processing.
- Cost implications of using Azure AI Agents Service beyond the SDK itself.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — isodate, azure-core, typing-extensions |
| Maintenance | actively maintained — 374 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,601,444/month — #1,716 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_ai_agents-1.1.0-py3-none-any.whl
Keywords: azure, azure sdk
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
azure-ai-projectsProvides a Python client for Microsoft Foundry…
permissive · top 5,000 on PyPI
azure-ai-vision-imageanalysisCalls Azure's Computer Vision service to…
permissive · top 15,000 on PyPI
azure-ai-inferenceUnified client library for chat completions,…
permissive · top 5,000 on PyPI
azure-search-documentsClient library for querying, indexing, and…
unclear · top 5,000 on PyPI
agent-framework-ollamaIntegrates Ollama LLM provider support into…
permissive · top 15,000 on PyPI
agent-framework-foundryProvides Microsoft Foundry integrations for the…
permissive · top 15,000 on PyPI
azure-mgmt-resource-deploymentsManages Azure resource deployments…
permissive · top 5,000 on PyPI
agent-frameworkBuilds and orchestrates AI agents powered by…
permissive · top 5,000 on PyPI
agent-framework-foundry-localIntegrates Microsoft Agent Framework with…
permissive · top 15,000 on PyPI
microsoft-agents-a365-runtimeProvides core runtime utilities, environment…
permissive · top 15,000 on PyPI