azure-ai-agentserver-core
Foundation utilities and host framework for Azure AI Hosted Agents
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained (released 8 days ago), has low install friction, carries a permissive MIT license, and solves a concrete problem — hosting Azure AI agents with production-grade infrastructure (tracing, graceful shutdown, health probes, state persistence) built in. It's in the top 5000 PyPI packages by download volume. Install it if you are building agents for Azure Foundry or need a structured ASGI host with OpenTelemetry and graceful shutdown.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Optional azure-identity package needed for DefaultAzureCredential; optional gRPC extra for OTLP/gRPC protocol support.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) — you can use, modify, and distribute this package freely with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2026-08-06 (8 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 813,097 downloads/mo, #4,997 on PyPI
Alternatives
Verify before relying
pip install azure-ai-agentserver-core
from azure.ai.agentserver.core import AgentServerHost
from starlette.responses import JSONResponse
from starlette.routing import Route
class MyAgent(AgentServerHost):
def __init__(self, **kwargs):
routes = [Route("/my-endpoint", self._handle, methods=["POST"])]
super().__init__(routes=routes, **kwargs)
async def _handle(self, request):
return JSONResponse({"status": "ok"})
app = MyAgent()
app.run()- Whether the state store's optimistic concurrency model and tag-filtered listing cover all common use cases for agent session memory.
- Performance characteristics and throughput limits of FoundryStateStore under concurrent multi-user load.
- How the @task decorator's crash recovery and resume patterns interact with distributed deployments or container orchestration platforms.
What it is and what it does
Azure AI Agent Server Core is a Python framework for hosting containerized Azure AI agents. It abstracts away the operational plumbing — HTTP serving via Hypercorn on a configurable port, health readiness probes, graceful shutdown with request draining, and automatic OpenTelemetry tracing with Azure Monitor and OTLP export — so that protocol-specific packages can focus on endpoint logic. You subclass AgentServerHost, add your routes, and call run().
The package includes a durable state store (FoundryStateStore) for persisting agent session memory and per-user state, a @task decorator for building crash-resilient long-running agents that survive container restarts, and request context utilities for multi-user sessions that partition state by user ID while forwarding only the opaque call ID on outbound Foundry calls. Configuration is driven by environment variables (PORT, FOUNDRY_AGENT_NAME, APPLICATIONINSIGHTS_CONNECTION_STRING, OTEL_EXPORTER_OTLP_ENDPOINT, etc.), making it container-friendly.
Use it for
- Build a containerized agent that handles HTTP requests, exports traces to Azure Monitor, and serves on a configurable port with health probes.
- Implement multi-user agent sessions where each request carries user identity and call context, with state partitioned per user.
- Create a crash-resilient agent using the @task decorator that persists state across container restarts and redeployments.
- Set up graceful shutdown for an agent container that drains in-flight requests before exiting with a default 30 s timeout.
- Store agent session memory, conversation checkpoints, and per-user preferences in a durable state store with optimistic concurrency.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained (released 8 days ago), has low install friction, carries a permissive MIT license, and solves a concrete problem — hosting Azure AI agents with production-grade infrastructure (tracing, graceful shutdown, health probes, state persistence) built in. It's in the top 5000 PyPI packages by download volume. Install it if you are building agents for Azure Foundry or need a structured ASGI host with OpenTelemetry and graceful shutdown.
Install
azure-ai-agentserver-core on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance — released 8 days ago with recent commits. Requires Python 3.10 or later and brings 9 runtime dependencies including starlette, hypercorn, and OpenTelemetry libraries.
Requires Python 3.10 or later. Optional azure-identity package needed for DefaultAzureCredential; optional gRPC extra for OTLP/gRPC protocol support.
License in practice
MIT license (permissive) — you can use, modify, and distribute this package freely with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install azure-ai-agentserver-core
from azure.ai.agentserver.core import AgentServerHost
from starlette.responses import JSONResponse
from starlette.routing import Route
class MyAgent(AgentServerHost):
def __init__(self, **kwargs):
routes = [Route("/my-endpoint", self._handle, methods=["POST"])]
super().__init__(routes=routes, **kwargs)
async def _handle(self, request):
return JSONResponse({"status": "ok"})
app = MyAgent()
app.run()
Verify before relying
- Whether the state store's optimistic concurrency model and tag-filtered listing cover all common use cases for agent session memory.
- Performance characteristics and throughput limits of FoundryStateStore under concurrent multi-user load.
- How the @task decorator's crash recovery and resume patterns interact with distributed deployments or container orchestration platforms.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 9 packagesazure-coreisodatestarlettehypercornopentelemetry-apiopentelemetry-sdkmicrosoft-opentelemetryaiohttpazure-identity |
| Maintenance | Actively maintained 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 813,097 / month, #4,997 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: azure_ai_agentserver_core-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “asgi host for azure agents”
- azure-ai-agentserver-coreProvides the host framework and infrastructure for building Azure AI…
- agent-framework-azurefunctionsHosts Microsoft Agent Framework agents on Azure Durable Functions,…
- langchain-azure-aiIntegrates Microsoft Foundry (Azure AI) capabilities into LangChain…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also azure-ai-agentserver-agentframework · azure-ai-agentserver-invocations · azure-ai-agentserver-responses · agent-framework-foundry-hosting · azure-ai-projects · agent-framework · agent-framework-foundry · agent-framework-foundry-local · spotinst-agent · spotinst-agent-2