This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// こんな定義があるとして | |
// TODO: Cognitive Search の Uri をセット | |
private static readonly Uri SearchEndpoint = new Uri(""); | |
// TODO: ADMIN の API キーをセット | |
private const string AdminApiKey = ""; | |
// TODO: インデックス名をセット | |
private const string IndexName = ""; | |
// using statement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// こんな定義があるとして | |
// TODO: Cognitive Search の Uri をセット | |
private static readonly Uri SearchEndpoint = new Uri(""); | |
// TODO: ADMIN の API キーをセット | |
private const string AdminApiKey = ""; | |
// TODO: インデックス名をセット | |
private const string IndexName = ""; | |
// using statement | |
using Azure; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class Program | |
{ | |
// TODO: Cognitive Search の Uri をセット | |
private static readonly Uri SearchEndpoint = new Uri(""); | |
// TODO: ADMIN の API キーをセット | |
private const string AdminApiKey = ""; | |
// TODO: インデックス名をセット | |
private const string IndexName = ""; | |
private static async Task Main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Greeting | |
- Hi! | |
- Welcome! | |
- Hey! | |
- 今は ${addHours(utcNow(), 9, "yyyy/MM/dd HH:mm")} だよ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "../app.schema", | |
"$kind": "Microsoft.AdaptiveDialog", | |
"generator": "common.lg", | |
"triggers": [ | |
{ | |
"$kind": "Microsoft.OnUnknownIntent", | |
"actions": [ | |
{ | |
"$kind": "Microsoft.SendActivity", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ItemGroup> | |
<Content Include="**/*.dialog"> | |
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
</Content> | |
<Content Include="**/*.lg"> | |
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
</Content> | |
<Content Update="appsettings.json"> | |
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Bot.Builder; | |
using Microsoft.Bot.Builder.Integration.AspNet.Core; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using EchoBot2.Bots; | |
using Microsoft.Bot.Builder.Dialogs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AdapterWithErrorHandler : BotFrameworkHttpAdapter | |
{ | |
public AdapterWithErrorHandler(IConfiguration configuration, | |
IStorage storage, UserState userState, | |
ConversationState conversationState, | |
ILogger<BotFrameworkHttpAdapter> logger) : base(configuration, logger) | |
{ | |
Use(new RegisterClassMiddleware<IConfiguration>(configuration)); | |
this.UseStorage(storage); | |
this.UseBotState(userState); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "../app.schema", | |
"$kind": "Microsoft.AdaptiveDialog", | |
"triggers": [ | |
{ | |
"$kind": "Microsoft.OnUnknownIntent", | |
"actions": [ | |
{ | |
"$kind": "Microsoft.SendActivity", | |
"activity": "You said '${turn.activity.text}'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Bot.Builder; | |
using Microsoft.Bot.Builder.Dialogs; | |
using Microsoft.Bot.Builder.Dialogs.Adaptive; | |
using Microsoft.Bot.Builder.Dialogs.Declarative.Resources; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace EchoBot2.Bots | |
{ |