我试图将现有的v4机器人转化为一种技能。现在它在构建时没有显示任何错误。但是在仿真器中,我没有任何反应。
模拟器的屏幕截图
任何人都可以帮助我知道从哪里开始调试吗?
我已按照https://microsoft.github.io/botframework-solutions/howto/skills/skillenablingav4bot/
的步骤进行操作我没有Adapters或BotSettings类,所以我在这里创建的都是我添加的代码
CustomSkillAdapter.cs
public class CustomSkillAdapter : SkillWebSocketBotAdapter
{
public CustomSkillAdapter(
BotSettings settings,
BotStateSet botStateSet,
ConversationState conversationState,
ResponseManager responseManager,
IBotTelemetryClient telemetryClient,
UserState userState)
: base()
{
Use(new SkillMiddleware(userState, conversationState, conversationState.CreateProperty<DialogState>(nameof(DialogState))));
}
}
DefaultAdapter.cs
public class DefaultAdapter : BotFrameworkHttpAdapter
{
public DefaultAdapter(
BotSettings settings,
ICredentialProvider credentialProvider,
IBotTelemetryClient telemetryClient,
ResponseManager responseManager)
: base(credentialProvider)
{
Use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
Use(new TelemetryLoggerMiddleware(telemetryClient, logPersonalInformation: true));
Use(new ShowTypingMiddleware());
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));
Use(new EventDebuggerMiddleware());
}
}
BotSettings它实际上是空白的
public class BotSettings : BotSettingsBase
{
}