azure-ai-agentserver-responses
Python SDK for building servers implementing the Azure AI Responses protocol
Decision gist · record as of 2026-08-14
Yes. This is a production-ready (Development Status 5) framework extension from Microsoft's official Azure SDK with no known vulnerabilities, low install friction, and active maintenance. Install it if you are building an agent server on the Azure AI Hosted Agent platform and need to implement the Responses protocol.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Python 3.10 or later required; handlers must be async def with exactly three positional parameters (request, context, cancellation_signal).
- Low friction installation with a pure-Python wheel.
- Actively maintained with a recent release (3 days old) and strong repository signals (5588 stars, last commit 2026-08-14).
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-08-11 (3 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 382,360 downloads/mo, #7,089 on PyPI
Alternatives
Verify before relying
pip install azure-ai-agentserver-responses
from azure.ai.agentserver.responses import ResponsesAgentServerHost, TextResponse, ResponseContext, CreateResponse
import asyncio
app = ResponsesAgentServerHost()
@app.response_handler
async def handler(request: CreateResponse, context: ResponseContext, cancellation_signal: asyncio.Event):
text = await context.get_input_text()
return TextResponse(context, request, text=f"Echo: {text}")
app.run()- Whether the crash-recovery feature (resilient_background=True) has been tested in production environments.
- Performance characteristics under high concurrency or large streaming payloads.
- Compatibility guarantees with specific Azure AI platform versions beyond container protocol 2.0.0.
What it is and what it does
This package extends azure-ai-agentserver-core by adding a complete Responses protocol implementation for Azure AI Hosted Agent containers. It handles the full lifecycle of agent responses—creation, streaming via Server-Sent Events (SSE), cancellation, deletion, and replay—through REST endpoints and async handler decorators.
Developers register async handlers using the @app.response_handler decorator to process incoming requests. The package manages response state transitions (created → in_progress → completed/failed/cancelled), handles client disconnections and cancellation signals independently from server shutdown, and provides utilities like TextResponse for simple text replies and ResponseEventStream for complex multi-type outputs with function calls and reasoning items. It supports streaming, background execution, and opt-in crash recovery for stored responses.
Use it for
- Building conversational AI agents that stream token-by-token responses in real-time to clients over SSE.
- Implementing multi-user agent sessions where per-request call IDs route tool invocations to user-scoped results.
- Creating agents that emit function calls, reasoning traces, and structured outputs alongside text in a single response stream.
- Handling graceful cancellation and server shutdown independently—observing client cancellation via a signal while tracking server drain separately.
- Recovering from crashes in background response handlers by replaying persisted stream events when resilient_background mode is enabled.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a production-ready (Development Status 5) framework extension from Microsoft's official Azure SDK with no known vulnerabilities, low install friction, and active maintenance. Install it if you are building an agent server on the Azure AI Hosted Agent platform and need to implement the Responses protocol.
Install
azure-ai-agentserver-responses on PyPI
Before you install
Low friction installation with a pure-Python wheel. Actively maintained with a recent release (3 days old) and strong repository signals (5588 stars, last commit 2026-08-14). Requires Python 3.10 or later.
Python 3.10 or later required; handlers must be async def with exactly three positional parameters (request, context, cancellation_signal).
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install azure-ai-agentserver-responses
from azure.ai.agentserver.responses import ResponsesAgentServerHost, TextResponse, ResponseContext, CreateResponse
import asyncio
app = ResponsesAgentServerHost()
@app.response_handler
async def handler(request: CreateResponse, context: ResponseContext, cancellation_signal: asyncio.Event):
text = await context.get_input_text()
return TextResponse(context, request, text=f"Echo: {text}")
app.run()
Verify before relying
- Whether the crash-recovery feature (resilient_background=True) has been tested in production environments.
- Performance characteristics under high concurrency or large streaming payloads.
- Compatibility guarantees with specific Azure AI platform versions beyond container protocol 2.0.0.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesazure-ai-agentserver-coreazure-coreisodateaiohttp |
| Maintenance | Actively maintained 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 382,360 / month, #7,089 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_responses-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 › “azure ai agent server responses”
- azure-ai-agentserver-responsesProvides the Responses protocol endpoints for Azure AI Hosted Agent…
- azure-ai-agentserver-invocationsProvides HTTP and WebSocket invocation protocol endpoints for Azure…
- azure-ai-agentserver-agentframeworkWraps an Agent-framework agent to host it on Azure AI Agent Server,…
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-core · azure-ai-agentserver-invocations · clarifai-protocol · azure-ai-agentserver-agentframework · agent-framework-azurefunctions · agent-framework-openai · azure-ai-projects · agent-framework-azure-ai · agent-framework-azure-ai-search · agent-framework-foundry-hosting