Skip to content

Commit 7582b2e

Browse files
authored
Merge pull request #423 from watson-developer-cloud/8232-april-2020-release
April 2020 release
2 parents 3a13e4f + c4004ca commit 7582b2e

File tree

54 files changed

+457
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+457
-142
lines changed

examples/IBM.Watson.Assistant.v2.Examples/ServiceExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2019, 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.

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/IBM.Watson.Assistant.v1.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<ItemGroup>
2828
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.1.0" />
29-
<PackageReference Include="IBM.Watson.Common" Version="4.3.1" />
29+
<PackageReference Include="IBM.Watson.Common" Version="4.4.0" />
3030
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
3131
<PackageReference Include="JsonSubTypes" Version="1.6.0" />
3232
</ItemGroup>

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/DialogNodeOutputGeneric.cs

Lines changed: 4 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.
@@ -198,15 +198,15 @@ public class QueryTypeEnumValue
198198
/// The text of the search query. This can be either a natural-language query or a query that uses the Discovery
199199
/// query language syntax, depending on the value of the **query_type** property. For more information, see the
200200
/// [Discovery service
201-
/// documentation](https://cloud.ibm.com/docs/services/discovery/query-operators.html#query-operators). Required
202-
/// when **response_type**=`search_skill`.
201+
/// documentation](https://cloud.ibm.com/docs/discovery/query-operators.html#query-operators). Required when
202+
/// **response_type**=`search_skill`.
203203
/// </summary>
204204
[JsonProperty("query", NullValueHandling = NullValueHandling.Ignore)]
205205
public string Query { get; set; }
206206
/// <summary>
207207
/// An optional filter that narrows the set of documents to be searched. For more information, see the
208208
/// [Discovery service documentation]([Discovery service
209-
/// documentation](https://cloud.ibm.com/docs/services/discovery/query-parameters.html#filter).
209+
/// documentation](https://cloud.ibm.com/docs/discovery/query-parameters.html#filter).
210210
/// </summary>
211211
[JsonProperty("filter", NullValueHandling = NullValueHandling.Ignore)]
212212
public string Filter { 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.Assistant.v2/IBM.Watson.Assistant.v2.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<ItemGroup>
2828
<PackageReference Include="IBM.Cloud.SDK.Core" Version="1.1.0" />
29-
<PackageReference Include="IBM.Watson.Common" Version="4.3.1" />
29+
<PackageReference Include="IBM.Watson.Common" Version="4.4.0" />
3030
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
3131
<PackageReference Include="JsonSubTypes" Version="1.6.0" />
3232
</ItemGroup>

0 commit comments

Comments
 (0)