|
1 | 1 | namespace Azure.AI.Language.QuestionAnswering |
2 | 2 | { |
| 3 | + public partial class QueryKnowledgeBaseOptions |
| 4 | + { |
| 5 | + public QueryKnowledgeBaseOptions(string projectName, string deploymentName, int qnaId) { } |
| 6 | + public QueryKnowledgeBaseOptions(string projectName, string deploymentName, string question) { } |
| 7 | + public Azure.AI.Language.QuestionAnswering.Models.AnswerSpanRequest AnswerSpanRequest { get { throw null; } set { } } |
| 8 | + public double? ConfidenceScoreThreshold { get { throw null; } set { } } |
| 9 | + public Azure.AI.Language.QuestionAnswering.Models.KnowledgeBaseAnswerRequestContext Context { get { throw null; } set { } } |
| 10 | + public string DeploymentName { get { throw null; } } |
| 11 | + public bool? IncludeUnstructuredSources { get { throw null; } set { } } |
| 12 | + public string ProjectName { get { throw null; } } |
| 13 | + public int? QnaId { get { throw null; } } |
| 14 | + public string Question { get { throw null; } } |
| 15 | + public Azure.AI.Language.QuestionAnswering.Models.RankerType? RankerType { get { throw null; } set { } } |
| 16 | + public Azure.AI.Language.QuestionAnswering.Models.StrictFilters StrictFilters { get { throw null; } set { } } |
| 17 | + public int? Top { get { throw null; } set { } } |
| 18 | + public string UserId { get { throw null; } set { } } |
| 19 | + } |
| 20 | + public partial class QueryTextOptions |
| 21 | + { |
| 22 | + public QueryTextOptions(string question, System.Collections.Generic.IEnumerable<Azure.AI.Language.QuestionAnswering.TextRecord> records) { } |
| 23 | + public string Language { get { throw null; } set { } } |
| 24 | + public string Question { get { throw null; } } |
| 25 | + public System.Collections.Generic.IList<Azure.AI.Language.QuestionAnswering.TextRecord> Records { get { throw null; } } |
| 26 | + public Azure.AI.Language.QuestionAnswering.Models.StringIndexType? StringIndexType { get { throw null; } set { } } |
| 27 | + } |
3 | 28 | public partial class QuestionAnsweringClient |
4 | 29 | { |
5 | 30 | protected QuestionAnsweringClient() { } |
6 | 31 | public QuestionAnsweringClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { } |
7 | 32 | public QuestionAnsweringClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions options) { } |
8 | 33 | public virtual System.Uri Endpoint { get { throw null; } } |
9 | | - public virtual Azure.Response<Azure.AI.Language.QuestionAnswering.Models.KnowledgeBaseAnswers> QueryKnowledgeBase(string projectName, Azure.AI.Language.QuestionAnswering.Models.QueryKnowledgeBaseOptions options, string deploymentName = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
10 | | - public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.QuestionAnswering.Models.KnowledgeBaseAnswers>> QueryKnowledgeBaseAsync(string projectName, Azure.AI.Language.QuestionAnswering.Models.QueryKnowledgeBaseOptions options, string deploymentName = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
11 | | - public virtual Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers> QueryText(Azure.AI.Language.QuestionAnswering.Models.QueryTextOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
12 | | - public virtual Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers> QueryText(string question, System.Collections.Generic.IEnumerable<Azure.AI.Language.QuestionAnswering.Models.TextRecord> records, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
| 34 | + public virtual Azure.Response<Azure.AI.Language.QuestionAnswering.Models.KnowledgeBaseAnswers> QueryKnowledgeBase(Azure.AI.Language.QuestionAnswering.QueryKnowledgeBaseOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
| 35 | + public virtual Azure.Response<Azure.AI.Language.QuestionAnswering.Models.KnowledgeBaseAnswers> QueryKnowledgeBase(string projectName, string deploymentName, string question, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
| 36 | + public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.QuestionAnswering.Models.KnowledgeBaseAnswers>> QueryKnowledgeBaseAsync(Azure.AI.Language.QuestionAnswering.QueryKnowledgeBaseOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
| 37 | + public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.QuestionAnswering.Models.KnowledgeBaseAnswers>> QueryKnowledgeBaseAsync(string projectName, string deploymentName, string question, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
| 38 | + public virtual Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers> QueryText(Azure.AI.Language.QuestionAnswering.QueryTextOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
| 39 | + public virtual Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers> QueryText(string question, System.Collections.Generic.IEnumerable<Azure.AI.Language.QuestionAnswering.TextRecord> records, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
13 | 40 | public virtual Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers> QueryText(string question, System.Collections.Generic.IEnumerable<string> records, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
14 | | - public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers>> QueryTextAsync(Azure.AI.Language.QuestionAnswering.Models.QueryTextOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
15 | | - public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers>> QueryTextAsync(string question, System.Collections.Generic.IEnumerable<Azure.AI.Language.QuestionAnswering.Models.TextRecord> records, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
| 41 | + public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers>> QueryTextAsync(Azure.AI.Language.QuestionAnswering.QueryTextOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
| 42 | + public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers>> QueryTextAsync(string question, System.Collections.Generic.IEnumerable<Azure.AI.Language.QuestionAnswering.TextRecord> records, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
16 | 43 | public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Language.QuestionAnswering.Models.TextAnswers>> QueryTextAsync(string question, System.Collections.Generic.IEnumerable<string> records, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } |
17 | 44 | } |
18 | 45 | public partial class QuestionAnsweringClientOptions : Azure.Core.ClientOptions |
19 | 46 | { |
20 | | - public QuestionAnsweringClientOptions(Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions.ServiceVersion version = Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions.ServiceVersion.V2021_05_01_preview) { } |
| 47 | + public QuestionAnsweringClientOptions(Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions.ServiceVersion version = Azure.AI.Language.QuestionAnswering.QuestionAnsweringClientOptions.ServiceVersion.V2021_07_15_Preview) { } |
21 | 48 | public enum ServiceVersion |
22 | 49 | { |
23 | 50 | V2021_05_01_preview = 1, |
| 51 | + V2021_07_15_Preview = 2, |
24 | 52 | } |
25 | 53 | } |
| 54 | + public partial class TextRecord |
| 55 | + { |
| 56 | + public TextRecord(string id, string text) { } |
| 57 | + public string Id { get { throw null; } } |
| 58 | + public string Text { get { throw null; } } |
| 59 | + } |
26 | 60 | } |
27 | 61 | namespace Azure.AI.Language.QuestionAnswering.Models |
28 | 62 | { |
@@ -101,29 +135,6 @@ public MetadataFilter() { } |
101 | 135 | public Azure.AI.Language.QuestionAnswering.Models.CompoundOperationKind? CompoundOperation { get { throw null; } set { } } |
102 | 136 | public System.Collections.Generic.IDictionary<string, string> Metadata { get { throw null; } } |
103 | 137 | } |
104 | | - public partial class QueryKnowledgeBaseOptions |
105 | | - { |
106 | | - public QueryKnowledgeBaseOptions(int qnaId) { } |
107 | | - public QueryKnowledgeBaseOptions(string question) { } |
108 | | - public Azure.AI.Language.QuestionAnswering.Models.AnswerSpanRequest AnswerSpanRequest { get { throw null; } set { } } |
109 | | - public double? ConfidenceScoreThreshold { get { throw null; } set { } } |
110 | | - public Azure.AI.Language.QuestionAnswering.Models.KnowledgeBaseAnswerRequestContext Context { get { throw null; } set { } } |
111 | | - public bool? IncludeUnstructuredSources { get { throw null; } set { } } |
112 | | - public int? QnaId { get { throw null; } } |
113 | | - public string Question { get { throw null; } } |
114 | | - public Azure.AI.Language.QuestionAnswering.Models.RankerType? RankerType { get { throw null; } set { } } |
115 | | - public Azure.AI.Language.QuestionAnswering.Models.StrictFilters StrictFilters { get { throw null; } set { } } |
116 | | - public int? Top { get { throw null; } set { } } |
117 | | - public string UserId { get { throw null; } set { } } |
118 | | - } |
119 | | - public partial class QueryTextOptions |
120 | | - { |
121 | | - public QueryTextOptions(string question, System.Collections.Generic.IEnumerable<Azure.AI.Language.QuestionAnswering.Models.TextRecord> records) { } |
122 | | - public string Language { get { throw null; } set { } } |
123 | | - public string Question { get { throw null; } } |
124 | | - public System.Collections.Generic.IList<Azure.AI.Language.QuestionAnswering.Models.TextRecord> Records { get { throw null; } } |
125 | | - public Azure.AI.Language.QuestionAnswering.Models.StringIndexType? StringIndexType { get { throw null; } set { } } |
126 | | - } |
127 | 138 | public static partial class QuestionAnsweringModelFactory |
128 | 139 | { |
129 | 140 | public static Azure.AI.Language.QuestionAnswering.Models.AnswerSpan AnswerSpan(string text = null, double? confidenceScore = default(double?), int? offset = default(int?), int? length = default(int?)) { throw null; } |
@@ -193,12 +204,6 @@ public partial class TextAnswers |
193 | 204 | internal TextAnswers() { } |
194 | 205 | public System.Collections.Generic.IReadOnlyList<Azure.AI.Language.QuestionAnswering.Models.TextAnswer> Answers { get { throw null; } } |
195 | 206 | } |
196 | | - public partial class TextRecord |
197 | | - { |
198 | | - public TextRecord(string id, string text) { } |
199 | | - public string Id { get { throw null; } } |
200 | | - public string Text { get { throw null; } } |
201 | | - } |
202 | 207 | } |
203 | 208 | namespace Microsoft.Extensions.Azure |
204 | 209 | { |
|
0 commit comments