AdaptiveDialogBot Construtor
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da AdaptiveDialogBot classe.
public AdaptiveDialogBot (string adaptiveDialogId, string languageGeneratorId, Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer resourceExplorer, Microsoft.Bot.Builder.ConversationState conversationState, Microsoft.Bot.Builder.UserState userState, Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryBase skillConversationIdFactoryBase, Microsoft.Bot.Builder.Dialogs.Adaptive.LanguagePolicy languagePolicy, Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication botFrameworkAuthentication, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Dialogs.Memory.Scopes.MemoryScope> scopes = default, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Dialogs.Memory.IPathResolver> pathResolvers = default, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Dialogs.Dialog> dialogs = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialogBot : string * string * Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer * Microsoft.Bot.Builder.ConversationState * Microsoft.Bot.Builder.UserState * Microsoft.Bot.Builder.Skills.SkillConversationIdFactoryBase * Microsoft.Bot.Builder.Dialogs.Adaptive.LanguagePolicy * Microsoft.Bot.Connector.Authentication.BotFrameworkAuthentication * Microsoft.Bot.Builder.IBotTelemetryClient * seq<Microsoft.Bot.Builder.Dialogs.Memory.Scopes.MemoryScope> * seq<Microsoft.Bot.Builder.Dialogs.Memory.IPathResolver> * seq<Microsoft.Bot.Builder.Dialogs.Dialog> * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Dialogs.Adaptive.AdaptiveDialogBot
Public Sub New (adaptiveDialogId As String, languageGeneratorId As String, resourceExplorer As ResourceExplorer, conversationState As ConversationState, userState As UserState, skillConversationIdFactoryBase As SkillConversationIdFactoryBase, languagePolicy As LanguagePolicy, botFrameworkAuthentication As BotFrameworkAuthentication, telemetryClient As IBotTelemetryClient, Optional scopes As IEnumerable(Of MemoryScope) = Nothing, Optional pathResolvers As IEnumerable(Of IPathResolver) = Nothing, Optional dialogs As IEnumerable(Of Dialog) = Nothing, Optional logger As ILogger = Nothing)
Parâmetros
- adaptiveDialogId
- String
O ID do AdaptiveDialog para carregar a partir do ResourceExplorer.
- languageGeneratorId
- String
O ID do LanguageGenerator para carregar a partir do ResourceExplorer.
- resourceExplorer
- ResourceExplorer
O Bot Builder ResourceExplorer a partir do qual carregar.Dialog
- conversationState
- ConversationState
Uma ConversationState implementação.
- skillConversationIdFactoryBase
- SkillConversationIdFactoryBase
Uma SkillConversationIdFactoryBase implementação.
- languagePolicy
- LanguagePolicy
A LanguagePolicy a utilizar.
- botFrameworkAuthentication
- BotFrameworkAuthentication
Utilizado BotFrameworkAuthentication para obter um cliente para efetuar chamadas para As Competências do Bot Builder.
- telemetryClient
- IBotTelemetryClient
Um IBotTelemetryClient utilizado para registar eventos de telemetria do bot.
- scopes
- IEnumerable<MemoryScope>
Implementações personalizadas MemoryScope que expandem o sistema de memória.
- pathResolvers
- IEnumerable<IPathResolver>
Personalizado IPathResolver que adiciona novos atalhos de caminho de resolução aos âmbitos de memória.
- dialogs
- IEnumerable<Dialog>
Personalizado Dialog que será adicionado ao Conjunto de Diálogo de raiz.