Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ from microsoft_agents.hosting.core import TurnContext
# aiohttp hosting
from microsoft_agents.hosting.aiohttp import start_agent_process

# FastAPI hosting
from microsoft_agents.hosting.fastapi import start_agent_process
Comment on lines 30 to +33
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the single Import Examples code block, both aiohttp and FastAPI imports bind the same name start_agent_process. If a user copies the whole block, the FastAPI import will overwrite the aiohttp import, which is confusing and can lead to using the wrong framework helper. Consider splitting these into separate code blocks, or aliasing the imports (e.g., start_agent_process as aiohttp_start_agent_process / ... as fastapi_start_agent_process) to make the example copy/paste-safe.

Suggested change
from microsoft_agents.hosting.aiohttp import start_agent_process
# FastAPI hosting
from microsoft_agents.hosting.fastapi import start_agent_process
from microsoft_agents.hosting.aiohttp import start_agent_process as aiohttp_start_agent_process
# FastAPI hosting
from microsoft_agents.hosting.fastapi import start_agent_process as fastapi_start_agent_process

Copilot uses AI. Check for mistakes.

# Teams-specific functionality (compatible only with activity handler)
from microsoft_agents.hosting.teams import TeamsActivityHandler

Expand All @@ -54,6 +57,7 @@ We offer the following PyPI packages to create conversational experiences based
| `microsoft-agents-activity` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-activity)](https://pypi.org/project/microsoft-agents-activity/) | Types and validators implementing the Activity protocol spec. | `botframework-schema` |
| `microsoft-agents-hosting-core` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-core)](https://pypi.org/project/microsoft-agents-hosting-core/) | Core library for Microsoft Agents hosting. | `botbuilder-core, botframework-connector` |
| `microsoft-agents-hosting-aiohttp` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-aiohttp)](https://pypi.org/project/microsoft-agents-hosting-aiohttp/) | Configures aiohttp to run the Agent. | `botbuilder-integration-aiohttp` |
| `microsoft-agents-hosting-fastapi` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-fastapi)](https://pypi.org/project/microsoft-agents-hosting-fastapi/) | Configures FastAPI to run the Agent. | N/A |
| `microsoft-agents-hosting-teams` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-hosting-teams)](https://pypi.org/project/microsoft-agents-hosting-teams/) | Provides classes to host an Agent for Teams. | N/A |
| `microsoft-agents-storage-blob` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-blob)](https://pypi.org/project/microsoft-agents-storage-blob/) | Extension to use Azure Blob as storage. | `botbuilder-azure` |
| `microsoft-agents-storage-cosmos` | [![PyPI](https://img.shields.io/pypi/v/microsoft-agents-storage-cosmos)](https://pypi.org/project/microsoft-agents-storage-cosmos/) | Extension to use CosmosDB as storage. | `botbuilder-azure` |
Expand Down
Loading