This release is a pre-release and may not be stable for production use.
Microsoft Agents Hosting - Dialogs
Dialog system for the Microsoft 365 Agents SDK. Provides waterfall dialogs, prompts, choice recognition, and multi-turn conversation management.
This library is a port of the botbuilder-dialogs library to the new Microsoft 365 Agents SDK. It provides the same dialog primitives (WaterfallDialog, ComponentDialog, DialogSet, DialogContext) and prompts (TextPrompt, NumberPrompt, ChoicePrompt, ConfirmPrompt, DateTimePrompt, OAuthPrompt, etc.) with updated imports and patterns for the new SDK.
What is this?
This library is part of the Microsoft 365 Agents SDK for Python - a comprehensive framework for building enterprise-grade conversational AI agents. The dialogs library enables developers to structure multi-turn conversations with reusable, composable dialog primitives.
Release Notes
| Version | Date | Release Notes |
|---|---|---|
| 1.5.0 | 2026-08-26 | 1.5.0 Release Notes |
| 1.4.0 | 2026-08-18 | 1.4.0 Release Notes |
| 1.3.0 | 2026-07-30 | 1.3.0 Release Notes |
| 1.2.0 | 2026-07-17 | 1.2.0 Release Notes |
| 1.1.0 | 2026-06-19 | 1.1.0 Release Notes |
| 1.0.0 | 2026-05-22 | 1.0.0 Release Notes |
Packages Overview
We offer the following PyPI packages to create conversational experiences based on Agents:
Key Features
- WaterfallDialog: Sequential step-by-step conversation flows
- ComponentDialog: Composable, encapsulated dialog components
- Prompts: Built-in prompts for text, numbers, choices, confirmations, dates, attachments, and OAuth
- Choice recognition: Locale-aware choice matching and recognition
- Dialog memory: Scoped memory management (conversation, user, dialog, class, settings)
- DialogManager: High-level dialog orchestration with state management
Installation
pip install microsoft-agents-hosting-dialogs
Quick Start
from microsoft_agents.hosting.dialogs import (
WaterfallDialog,
WaterfallStepContext,
DialogSet,
DialogTurnStatus,
)
from microsoft_agents.hosting.dialogs.prompts import TextPrompt, PromptOptions
from microsoft_agents.hosting.core import ConversationState, MemoryStorage
storage = MemoryStorage()
conversation_state = ConversationState(storage)
dialog_state = conversation_state.create_property("DialogState")
dialogs = DialogSet(dialog_state)
async def step1(step: WaterfallStepContext):
return await step.prompt(
"text_prompt",
PromptOptions(prompt=MessageFactory.text("What is your name?"))
)
async def step2(step: WaterfallStepContext):
await step.context.send_activity(f"Hello, {step.result}!")
return await step.end_dialog()
dialogs.add(TextPrompt("text_prompt"))
dialogs.add(WaterfallDialog("main", [step1, step2]))
Release files for microsoft-agents-hosting-dialogs 1.6.1.dev6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| microsoft_agents_hosting_dialogs-1.6.1.dev6.tar.gz | 61.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| microsoft_agents_hosting_dialogs-1.6.1.dev6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 160.2 kB
Release files / microsoft_agents_hosting_dialogs-1.6.1.dev6.tar.gz
| Download URL | microsoft_agents_hosting_dialogs-1.6.1.dev6.tar.gz |
|---|---|
| Size | 61.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6eddef9f21e9a061d37a1da6780828135d93c0d890c5a772c0068d2b6dec6ba8
|
|
BLAKE2b-256 checksum How to use checksums |
eb5776601178018de63f090d56a5040ee7f5f0c9b7bcd64666df20e870284c97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Release files / microsoft_agents_hosting_dialogs-1.6.1.dev6-py3-none-any.whl
| Download URL | microsoft_agents_hosting_dialogs-1.6.1.dev6-py3-none-any.whl |
|---|---|
| Size | 98.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0fea3a174f4373da6e1e8ac070bef552277808af075fc2c33c8441fbf1060435
|
|
BLAKE2b-256 checksum How to use checksums |
7bcd8b0bfd361e333b6b2d10f358c7c4a23a9b309ad8019512faf9a828dbd1e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|