Skip to content

API Reference parrot.integrations.msteams.dialogs.factory

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.integrations.msteams.dialogs.factory

View source

Alias ConversationalFormDialog

Re-exported from parrot.integrations.msteams.dialogs.presets.ConversationalFormDialog.

Class FormDialogFactory

Factory to create WaterfallDialogs from FormSchemas.

Supports different layouts:

  • SINGLE_COLUMN: Single Adaptive Card with all fields
  • WIZARD: One section per step
  • ACCORDION: Accordion-style (treated as SINGLE_COLUMN)
  • CONVERSATIONAL: One prompt per field

NOTE: Dialogs no longer accept card_builder, validator, callbacks, or agent to avoid serialization issues with jsonpickle. These are accessed via:

  • renderer/validator: created fresh via _get_card_renderer()/_get_validator()
  • agent: accessed via turn_state
  • callbacks: handled by wrapper after dialog ends

Method FormDialogFactory.create_dialog

Create appropriate dialog based on form layout.

create_dialog(form: FormSchema, style: Optional[StyleSchema] = None, on_complete: Callable[[Dict[str, Any]], Awaitable[Any]] = None, on_cancel: Optional[Callable[[], Awaitable[Any]]] = None) -> ComponentDialog

Parameter Type Default Description
form FormSchema The FormSchema
style Optional[StyleSchema] None Optional StyleSchema for presentation
on_complete Callable[[Dict[str, Any]], Awaitable[Any]] None Ignored - completion handled by wrapper
on_cancel Optional[Callable[[], Awaitable[Any]]] None Ignored - cancellation handled by wrapper

Returns: ComponentDialog — ComponentDialog for the form

Alias FormSchema

Re-exported from parrot.forms.FormSchema.

Alias LayoutType

Re-exported from parrot.forms.LayoutType.

Alias SimpleFormDialog

Re-exported from parrot.integrations.msteams.dialogs.presets.SimpleFormDialog.

Alias StyleSchema

Re-exported from parrot.forms.StyleSchema.

Alias WizardFormDialog

Re-exported from parrot.integrations.msteams.dialogs.presets.WizardFormDialog.

Alias WizardWithSummaryDialog

Re-exported from parrot.integrations.msteams.dialogs.presets.WizardWithSummaryDialog.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally