コード例 #1
0
ファイル: SkillDialog.cs プロジェクト: shankslouis/AI
        public SkillDialog(SkillDefinition skillDefinition, SkillConfigurationBase skillConfiguration, EndpointService endpointService, IBotTelemetryClient telemetryClient, bool useCachedTokens = true)
            : base(skillDefinition.Id)
        {
            _skillDefinition    = skillDefinition;
            _skillConfiguration = skillConfiguration;
            _endpointService    = endpointService;
            _telemetryClient    = telemetryClient;
            _useCachedTokens    = useCachedTokens;

            AddDialog(new MultiProviderAuthDialog(skillConfiguration));
        }
コード例 #2
0
        public SkillDialog(SkillDefinition skillDefinition, SkillConfigurationBase skillConfiguration, ProactiveState proactiveState, EndpointService endpointService, IBotTelemetryClient telemetryClient, IBackgroundTaskQueue backgroundTaskQueue, bool useCachedTokens = true)
            : base(skillDefinition.Id)
        {
            _skillDefinition     = skillDefinition;
            _skillConfiguration  = skillConfiguration;
            _proactiveState      = proactiveState;
            _endpointService     = endpointService;
            _telemetryClient     = telemetryClient;
            _backgroundTaskQueue = backgroundTaskQueue;
            _useCachedTokens     = useCachedTokens;

            var supportedLanguages = skillConfiguration.LocaleConfigurations.Keys.ToArray();

            _responseManager = new ResponseManager(supportedLanguages, new SkillResponses());

            AddDialog(new MultiProviderAuthDialog(skillConfiguration));
        }
コード例 #3
0
        public SkillDialog(SkillDefinition skillDefinition, SkillConfigurationBase skillConfiguration, EndpointService endpointService, IBotTelemetryClient telemetryClient, bool useCachedTokens = true)
            : base(skillDefinition.Id)
        {
            _skillDefinition    = skillDefinition;
            _skillConfiguration = skillConfiguration;
            _endpointService    = endpointService;
            _telemetryClient    = telemetryClient;
            _useCachedTokens    = useCachedTokens;

            var supportedLanguages = skillConfiguration.LocaleConfigurations.Keys.ToArray();

            _responseManager = new ResponseManager(
                new IResponseIdCollection[]
            {
                new CommonResponses()
            },
                supportedLanguages);

            AddDialog(new MultiProviderAuthDialog(skillConfiguration));
        }