You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Providing an endpointKey in the QnAMakerDialog constructor is deprecated, use WithEndpointKey() method instead and provide 'null' or 'empty' value in the constructor.");
141
146
142
-
// add waterfall steps
143
-
this.AddStep(CallGenerateAnswerAsync);
144
-
this.AddStep(CallTrainAsync);
145
-
this.AddStep(CheckForMultiTurnPromptAsync);
146
-
this.AddStep(DisplayQnAResultAsync);
147
+
EndpointKey=endpointKey;
148
+
}
147
149
}
148
150
149
151
/// <summary>
150
152
/// Initializes a new instance of the <see cref="QnAMakerDialog"/> class.
151
153
/// </summary>
152
154
/// <param name="knowledgeBaseId">The ID of the QnA Maker knowledge base to query.</param>
153
-
/// <param name="endpointKey">The QnA Maker endpoint key to use to query the knowledge base.</param>
155
+
/// <param name="endpointKey">**Deprecated - use WithEndpointKey() instead**.The QnA Maker endpoint key to use to query the knowledge base.</param>
154
156
/// <param name="hostName">The QnA Maker host URL for the knowledge base, starting with "https://" and
155
157
/// ending with "/qnamaker".</param>
156
158
/// <param name="noAnswer">The activity to send the user when QnA Maker does not find an answer.</param>
/// Gets or sets the ClientId of the Managed Identity resource. Access control (IAM) role `Cognitive Services User` must be assigned in the Language resource to the Managed Identity resource.
314
+
/// </summary>
315
+
/// <value>
316
+
/// The ClientId of the Managed Identity resource.
Copy file name to clipboardExpand all lines: libraries/Microsoft.Bot.Builder.AI.QnA/QnAMakerEndpoint.cs
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,5 +67,14 @@ public QnAMakerEndpoint(QnAMakerService service)
67
67
/// </value>
68
68
[JsonProperty("host")]
69
69
publicstringHost{get;set;}
70
+
71
+
/// <summary>
72
+
/// Gets or sets the ClientId of the Managed Identity resource. Access control (IAM) role `Cognitive Services User` must be assigned in the Language resource to the Managed Identity resource.
73
+
/// </summary>
74
+
/// <value>
75
+
/// The ClientId of the Managed Identity resource.
0 commit comments