Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LexNLUTrainClient"/> class.
 /// </summary>
 /// <param name="botName">Bot name.</param>
 /// <param name="botAlias">Bot alias.</param>
 /// <param name="importBotTemplate">Bot template.</param>
 /// <param name="lexClient">Lex client.</param>
 public LexNLUTrainClient(
     string botName,
     string botAlias,
     JObject importBotTemplate,
     ILexTrainClient lexClient)
 {
     this.LexBotName        = botName ?? throw new ArgumentNullException(nameof(botName));
     this.LexBotAlias       = botAlias ?? throw new ArgumentNullException(nameof(botAlias));
     this.ImportBotTemplate = importBotTemplate ?? throw new ArgumentNullException(nameof(importBotTemplate));
     this.LexClient         = lexClient ?? throw new ArgumentNullException(nameof(lexClient));
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LexNLUTrainClient"/> class.
 /// </summary>
 /// <param name="botName">Bot name.</param>
 /// <param name="botAlias">Bot alias.</param>
 /// <param name="lexSettings">Lex settings.</param>
 /// <param name="lexClient">Lex client.</param>
 public LexNLUTrainClient(
     string botName,
     string botAlias,
     LexSettings lexSettings,
     ILexTrainClient lexClient)
 {
     this.LexBotName  = botName ?? throw new ArgumentNullException(nameof(botName));
     this.LexBotAlias = botAlias ?? throw new ArgumentNullException(nameof(botAlias));
     this.LexSettings = lexSettings ?? throw new ArgumentNullException(nameof(lexSettings));
     this.LexClient   = lexClient ?? throw new ArgumentNullException(nameof(lexClient));
 }