Registry / web-framework / microsoft-agents-hosting-aiohttp

microsoft-agents-hosting-aiohttp

JSON →
library0.9.0pypypiunverified

Integration library for hosting Microsoft Agents applications using the aiohttp web framework. Version 0.9.0 supports Python >=3.10 and provides middleware and routing for building agent-based HTTP services.

pip install microsoft-agents-hosting-aiohttp
INSTALL
IMPORT
SIG · MICROSOFT-AGENTS-H
M
microsoft-agents-hosting-aiohttp
web-frameworkpythonv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AioHttpHost
from microsoft_agents.hosting.aiohttp import AioHttpHost
from microsoft.agents.hosting.aiohttp import AioHttpHost

Creates an aiohttp web application with Microsoft Agent hosting middleware.

import os from aiohttp import web from microsoft.agents.hosting.aiohttp import AioHttpHost, CloudAdapter app = web.Application() host = AioHttpHost( app=app, adapter=CloudAdapter( bot_app_id=os.environ.get('BOT_APP_ID', ''), bot_app_password=os.environ.get('BOT_APP_PASSWORD', '') ) ) host.register_routes() if __name__ == '__main__': web.run_app(app, port=3978)
Debug
Known issues
breakingThe package was renamed from 'agents-hosting-aiohttp' to 'microsoft-agents-hosting-aiohttp' in version 0.9.0. Old import paths will break.
fix
Update import to 'from microsoft.agents.hosting.aiohttp import ...'
affects: <0.9.0
deprecatedThe 'AioHttpHost' constructor no longer accepts 'settings' parameter directly; use 'CloudAdapter' for configuration.
fix
Pass adapter=CloudAdapter(...) instead of settings dict.
affects: >=0.9.0
gotchaMissing BOT_APP_ID or BOT_APP_PASSWORD environment variables will cause runtime authentication failures without clear error messages. Always set them or use local adapter for development.
fix
Set BOT_APP_ID and BOT_APP_PASSWORD environment variables, or use CloudAdapter with app_id='' and password='' for local testing.
affects: all
Upgrade
Version history
0.9.0latest on PyPI · released Apr 15, 2026
Audit
Dependencies
microsoft-agents-corerequiredCore agent abstractions and communication protocols
aiohttprequiredWeb framework required for hosting
Agent activity
29 hits · last 30 days
node
26
Amazon
1
OpenAI (training)
1
Resources
microsoft-agents-hosting-aiohttp — pip install microsoft-agents-hosting-aiohttp · libregistry