dialogs 包

choices
memory
prompts
skills

模块

about
component_dialog
dialog
dialog_container
dialog_context
dialog_event
dialog_events
dialog_extensions
dialog_instance
dialog_manager
dialog_manager_result
dialog_reason
dialog_set
dialog_state
dialog_turn_result
dialog_turn_status
dialogs_component_registration
object_path
persisted_state
persisted_state_keys
waterfall_dialog
waterfall_step
waterfall_step_context

ComponentDialog

由其他对话组成的 Dialog

初始化 ComponentDialog 的新实例

ConfirmPrompt
DateTimePrompt
DateTimeResolution
Dialog
DialogContainer
DialogContext
DialogEvent
DialogExtensions
DialogInstance

跟踪堆栈上对话框的信息。

获取或设置对话框的 ID,并获取或设置实例的持久状态。

DialogManager

运行对话框系统的类。

初始化类的实例。 :p aram root_dialog:要使用的根对话框。 :p aram dialog_state_property:dialog_state属性的备用名称。 (默认值为“DialogState”)。

DialogManagerResult
DialogSet
DialogState

包含对话堆栈的状态信息。

初始化 DialogState 类的新实例。

DialogTurnResult

结果返回到各种堆栈作方法之一的调用方。

DialogsComponentRegistration
NumberPrompt
OAuthPrompt

创建 OAuthPrompt 类的新实例。

OAuthPromptSettings

用于配置 OAuthPrompt 实例的设置。 参数:connection_name(str):要使用的 OAuth 连接的名称。 title (str):卡片登录按钮的标题。 text (str):(可选)登录卡中包含的其他文本。 timeout (int):(可选)毫秒数,提示将等待用户进行身份验证。

     *OAuthPrompt* defaults value to *900,000* ms (15 minutes).

  oauth_app_credentials (AppCredentials): (Optional) AppCredentials to use for OAuth.  If None,
  the Bots credentials are used.
  end_on_invalid_message (bool): (Optional) value indicating whether the OAuthPrompt should end upon
  receiving an invalid message.  Generally the OAuthPrompt will ignore incoming messages from the
  user during the auth flow, if they are not related to the auth flow.  This flag enables ending the
  OAuthPrompt rather than ignoring the user's message.  Typically, this flag will be set to 'true',
  but is 'false' by default for backwards compatibility.
ObjectPath

用于处理 json 对象的帮助程序方法。

PersistedState
PersistedStateKeys
Prompt

定义提示对话的核心行为。 扩展 Dialog 基类。

创建新的 Prompt 实例。

ComponentDialog:type dialog_id:str :p aram 验证程序:(可选)提供其他验证并重新提示逻辑:类型验证程序: 对象

PromptOptions

包含用于在启动提示时传递给 Prompt 对象的设置。

将初始提示设置为以 Activity的形式发送给用户。

PromptRecognizerResult

创建提示识别器函数返回的结果。

PromptValidatorContext

创建传递给自定义 PromptValidator的上下文信息。 :p aram turn_context:与用户的当前会话轮次的上下文。 :p已识别:从提示识别器函数返回的结果。 :p aram 状态:在提示处于活动状态时,每个会话轮次保留的值字典。 :p aram 选项:调用对话框传递给提示的原始选项集。

TextPrompt

创建新的 Prompt 实例。

ComponentDialog:type dialog_id:str :p aram 验证程序:(可选)提供其他验证并重新提示逻辑:类型验证程序: 对象

WaterfallDialog
WaterfallStepContext

枚举

DialogEvents
DialogReason

指示调用与对话相关的方法。

DialogTurnStatus

指示调用与对话相关的方法。