Skip to content

Commit 0efef30

Browse files
committed
feat: Regenerate with 2.2.5 and c13e63c37da6e360d26e73be35da3b34ae95a075
1 parent 444579e commit 0efef30

File tree

22 files changed

+263
-95
lines changed

22 files changed

+263
-95
lines changed

src/IBM.Watson.Assistant.v1/AssistantService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ public DetailedResponse<ExampleCollection> ListExamples(string workspaceId, stri
10891089
///
10901090
/// Add a new user input example to an intent.
10911091
///
1092-
/// If you want to add multiple exaples with a single API call, consider using the **[Update
1092+
/// If you want to add multiple examples with a single API call, consider using the **[Update
10931093
/// intent](#update-intent)** method instead.
10941094
///
10951095
/// This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.

src/IBM.Watson.Assistant.v1/Model/DialogNode.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ public class DigressOutSlotsEnumValue
263263
[JsonProperty("user_label", NullValueHandling = NullValueHandling.Ignore)]
264264
public string UserLabel { get; set; }
265265
/// <summary>
266-
/// Whether the dialog node should be excluded from disambiguation suggestions.
266+
/// Whether the dialog node should be excluded from disambiguation suggestions. Valid only when
267+
/// **type**=`standard` or `frame`.
267268
/// </summary>
268269
[JsonProperty("disambiguation_opt_out", NullValueHandling = NullValueHandling.Ignore)]
269270
public bool? DisambiguationOptOut { get; set; }

src/IBM.Watson.Assistant.v1/Model/DialogSuggestionResponseGeneric.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2018, 2019.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -136,14 +136,13 @@ public class PreferenceEnumValue
136136
[JsonProperty("message_to_human_agent", NullValueHandling = NullValueHandling.Ignore)]
137137
public string MessageToHumanAgent { get; set; }
138138
/// <summary>
139-
/// A label identifying the topic of the conversation, derived from the **user_label** property of the relevant
140-
/// node.
139+
/// A label identifying the topic of the conversation, derived from the **title** property of the relevant node.
141140
/// </summary>
142141
[JsonProperty("topic", NullValueHandling = NullValueHandling.Ignore)]
143142
public virtual string Topic { get; private set; }
144143
/// <summary>
145144
/// The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated
146-
/// using the value of the dialog node's **user_label** property.
145+
/// using the value of the dialog node's **title** property.
147146
/// </summary>
148147
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
149148
public string DialogNode { get; set; }

src/IBM.Watson.Assistant.v1/Model/RuntimeEntity.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ public class RuntimeEntity
6666
[JsonProperty("interpretation", NullValueHandling = NullValueHandling.Ignore)]
6767
public RuntimeEntityInterpretation Interpretation { get; set; }
6868
/// <summary>
69+
/// An array of possible alternative values that the user might have intended instead of the value returned in
70+
/// the **value** property. This property is returned only for `@sys-time` and `@sys-date` entities when the
71+
/// user's input is ambiguous.
72+
///
73+
/// This property is included only if the new system entities are enabled for the workspace.
74+
/// </summary>
75+
[JsonProperty("alternatives", NullValueHandling = NullValueHandling.Ignore)]
76+
public List<RuntimeEntityAlternative> Alternatives { get; set; }
77+
/// <summary>
6978
/// An object describing the role played by a system entity that is specifies the beginning or end of a range
7079
/// recognized in the user input. This property is included only if the new system entities are enabled for the
7180
/// workspace.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* (C) Copyright IBM Corp. 2018, 2020.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using Newtonsoft.Json;
19+
20+
namespace IBM.Watson.Assistant.v1.Model
21+
{
22+
/// <summary>
23+
/// An alternative value for the recognized entity.
24+
/// </summary>
25+
public class RuntimeEntityAlternative
26+
{
27+
/// <summary>
28+
/// The entity value that was recognized in the user input.
29+
/// </summary>
30+
[JsonProperty("value", NullValueHandling = NullValueHandling.Ignore)]
31+
public string Value { get; set; }
32+
/// <summary>
33+
/// A decimal percentage that represents Watson's confidence in the recognized entity.
34+
/// </summary>
35+
[JsonProperty("confidence", NullValueHandling = NullValueHandling.Ignore)]
36+
public float? Confidence { get; set; }
37+
}
38+
39+
}

src/IBM.Watson.Assistant.v1/Model/RuntimeResponseGeneric.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2018, 2019.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -134,14 +134,13 @@ public class PreferenceEnumValue
134134
[JsonProperty("message_to_human_agent", NullValueHandling = NullValueHandling.Ignore)]
135135
public string MessageToHumanAgent { get; set; }
136136
/// <summary>
137-
/// A label identifying the topic of the conversation, derived from the **user_label** property of the relevant
138-
/// node.
137+
/// A label identifying the topic of the conversation, derived from the **title** property of the relevant node.
139138
/// </summary>
140139
[JsonProperty("topic", NullValueHandling = NullValueHandling.Ignore)]
141140
public virtual string Topic { get; private set; }
142141
/// <summary>
143142
/// The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated
144-
/// using the value of the dialog node's **user_label** property.
143+
/// using the value of the dialog node's **title** property.
145144
/// </summary>
146145
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
147146
public string DialogNode { get; set; }

src/IBM.Watson.Common/Common.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public partial class Common
2727
/// <summary>
2828
/// The SDK version.
2929
/// </summary>
30-
public const string Version = "watson-apis-dotnet-standard-sdk-4.3.0";
30+
public const string Version = "watson-apis-dotnet-standard-sdk-4.3.1";
3131
private static string os;
3232
private static string osVersion;
3333
private static string frameworkDescription;

src/IBM.Watson.Discovery.v1/Model/EnvironmentDocuments.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2017, 2019.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,8 +27,8 @@ public class EnvironmentDocuments
2727
/// <summary>
2828
/// Number of documents indexed for the environment.
2929
/// </summary>
30-
[JsonProperty("indexed", NullValueHandling = NullValueHandling.Ignore)]
31-
public virtual long? Indexed { get; private set; }
30+
[JsonProperty("available", NullValueHandling = NullValueHandling.Ignore)]
31+
public virtual long? Available { get; private set; }
3232
/// <summary>
3333
/// Total number of documents allowed in the environment's capacity.
3434
/// </summary>

src/IBM.Watson.LanguageTranslator.v3/LanguageTranslatorService.cs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ public LanguageTranslatorService(string versionDate, IAuthenticator authenticato
5757
/// <summary>
5858
/// Translate.
5959
///
60-
/// Translates the input text from the source language to the target language.
60+
/// The translate request containing the text, and either using a model ID or the source/target fields to select
61+
/// a language pair for translation. If present, the model ID takes precedence over source/target fields. If no
62+
/// explicit model is selected via model ID and the source language is omitted, the service will try to
63+
/// automatically detect the source language.
6164
/// </summary>
6265
/// <param name="request">The translate request containing the text, and either a model ID or source and target
6366
/// language pair.</param>
@@ -544,15 +547,18 @@ public DetailedResponse<DocumentList> ListDocuments()
544547
/// <param name="file">The contents of the source file to translate.
545548
///
546549
/// [Supported file
547-
/// types](https://cloud.ibm.com/docs/services/language-translator?topic=language-translator-document-translator-tutorial#supported-file-formats)
550+
/// types](https://cloud.ibm.com/docs/language-translator?topic=language-translator-document-translator-tutorial#supported-file-formats)
548551
///
549552
/// Maximum file size: **20 MB**.</param>
550553
/// <param name="filename">The filename for file.</param>
551554
/// <param name="fileContentType">The content type of file. (optional)</param>
552-
/// <param name="modelId">The model to use for translation. `model_id` or both `source` and `target` are
553-
/// required. (optional)</param>
555+
/// <param name="modelId">The model to use for translation. For example, `en-de` selects the IBM provided base
556+
/// model for English to German translation. A model ID overrides the source and target parameters and is
557+
/// required if you use a custom model. If no model ID is specified, you must specify a target language.
558+
/// (optional)</param>
554559
/// <param name="source">Language code that specifies the language of the source document. (optional)</param>
555-
/// <param name="target">Language code that specifies the target language for translation. (optional)</param>
560+
/// <param name="target">Language code that specifies the target language for translation. Required if model ID
561+
/// is not specified. (optional)</param>
556562
/// <param name="documentId">To use a previously submitted document as the source for a new translation, enter
557563
/// the `document_id` of the document. (optional)</param>
558564
/// <returns><see cref="DocumentStatus" />DocumentStatus</returns>

src/IBM.Watson.LanguageTranslator.v3/Model/DocumentStatus.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public class StatusEnumValue
7979
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
8080
public string Source { get; set; }
8181
/// <summary>
82+
/// A score between 0 and 1 indicating the confidence of source language detection. A higher value indicates
83+
/// greater confidence. This is returned only when the service automatically detects the source language.
84+
/// </summary>
85+
[JsonProperty("detected_language_confidence", NullValueHandling = NullValueHandling.Ignore)]
86+
public double? DetectedLanguageConfidence { get; set; }
87+
/// <summary>
8288
/// Translation target language code.
8389
/// </summary>
8490
[JsonProperty("target", NullValueHandling = NullValueHandling.Ignore)]

0 commit comments

Comments
 (0)