azure-ai-agentserver-invocations
Invocations protocol for Azure AI Hosted Agents
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained (release 4 days old), has zero known vulnerabilities, uses a permissive MIT license, and requires only two runtime dependencies with low install friction. It is marked Production/Stable and supports Python 3.10, 3.11, 3.12, 3.13, and 3.14. Install it if you are building an Azure AI Hosted Agent container and need standard invocation protocol endpoints.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with two runtime dependencies (azure-ai-agentserver-core and aiohttp).
- Actively maintained with a release 4 days old and recent commits; marked Production/Stable.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-08-10 (4 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 639,934 downloads/mo, #5,614 on PyPI
Alternatives
Verify before relying
pip install azure-ai-agentserver-invocations
from azure.ai.agentserver.invocations import InvocationAgentServerHost
app = InvocationAgentServerHost()
@app.invoke_handler
async def handle(request):
data = await request.json()
return {"result": data}
app.run()- Whether the package is suitable for production workloads beyond the stated Azure AI Hosted Agent container use case.
- Performance characteristics under high concurrency or large message volumes on WebSocket connections.
- Specific behavior and guarantees of the distributed tracing integration with GenAI semantic conventions.
What it is and what it does
This package extends the azure-ai-agentserver-core framework with a complete invocation protocol implementation for Azure AI Hosted Agent containers. It exposes HTTP endpoints (POST /invocations, GET /invocations/{id}, POST /invocations/{id}/cancel) and a WebSocket endpoint (/invocations_ws) for full-duplex streaming, along with OpenAPI and AsyncAPI documentation endpoints. Handlers are registered via decorators (@app.invoke_handler, @app.get_invocation_handler, @app.cancel_invocation_handler, @app.ws_handler) and receive request context including invocation ID, session ID, user ID, and call ID through request.state.
The package manages request/response headers automatically (x-agent-invocation-id, x-agent-session-id) and integrates with distributed tracing. It supports long-running operations with polling, streaming responses, and multi-user sessions on container protocol 2.0.0 by forwarding per-request call IDs to downstream services. Built on aiohttp, it runs as an async application with minimal boilerplate.
Use it for
- Build an agent that processes POST /invocations requests and returns JSON responses.
- Implement long-running agent operations with polling via GET /invocations/{id} and cancellation.
- Stream agent responses as Server-Sent Events or full-duplex WebSocket messages to clients.
- Handle multi-user sessions by forwarding x-agent-foundry-call-id headers to toolbox services.
- Expose OpenAPI and AsyncAPI documentation for agent discovery and client code generation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained (release 4 days old), has zero known vulnerabilities, uses a permissive MIT license, and requires only two runtime dependencies with low install friction. It is marked Production/Stable and supports Python 3.10, 3.11, 3.12, 3.13, and 3.14. Install it if you are building an Azure AI Hosted Agent container and need standard invocation protocol endpoints.
Install
azure-ai-agentserver-invocations on PyPI
Before you install
Low install friction with two runtime dependencies (azure-ai-agentserver-core and aiohttp). Actively maintained with a release 4 days old and recent commits; marked Production/Stable.
Requires Python 3.10 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install azure-ai-agentserver-invocations
from azure.ai.agentserver.invocations import InvocationAgentServerHost
app = InvocationAgentServerHost()
@app.invoke_handler
async def handle(request):
data = await request.json()
return {"result": data}
app.run()
Verify before relying
- Whether the package is suitable for production workloads beyond the stated Azure AI Hosted Agent container use case.
- Performance characteristics under high concurrency or large message volumes on WebSocket connections.
- Specific behavior and guarantees of the distributed tracing integration with GenAI semantic conventions.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesazure-ai-agentserver-coreaiohttp |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 639,934 / month, #5,614 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_invocations-1.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 agent server invocations”
- azure-ai-agentserver-invocationsProvides HTTP and WebSocket invocation protocol endpoints for Azure…
- azure-ai-agentserver-responsesProvides the Responses protocol endpoints for Azure AI Hosted Agent…
- agent-framework-azurefunctionsHosts Microsoft Agent Framework agents on Azure Durable Functions,…
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-responses · azure-ai-agentserver-agentframework · agent-framework-azure-ai · agent-framework-foundry-hosting · openhands-agent-server · azure-ai-projects · agent-framework-foundry · agent-framework-azurefunctions · azure-ai-agents