예제 #1
0
        public void TrackLuisIntent_SmokeTest()
        {
            var instrumentation = new BotFrameworkApplicationInsightsInstrumentation
                                  (
                new InstrumentationSettings
            {
                InstrumentationKeys = new List <string>(new[] { "instrumentation key" })
            }
                                  );

            var luisResult = new LuisResult
            {
                TopScoringIntent = new IntentRecommendation
                {
                    Intent = "luis intent",
                    Score  = 70
                },
                Entities = new List <EntityRecommendation>
                {
                    new EntityRecommendation
                    {
                        Entity = "luis entity",
                        Type   = "entity type",
                        Score  = 80,
                        Role   = "entity role"
                    }
                }
            };

            instrumentation.TrackLuisIntent(CreateActivity("some text", ActivityTypes.Message), luisResult);
        }
예제 #2
0
 public void TrackLuisIntent()
 {
     _defaultInstrumentation.TrackLuisIntent(_activity, _luisResult);
 }