Skip to content

Commit 290258c

Browse files
authored
Merge pull request #539 from watson-developer-cloud/feature-v3-filenames
File type and Synthesized Filename parameters
2 parents 97794aa + 956e5a5 commit 290258c

32 files changed

+545
-442
lines changed

Core

Scripts/Services/Assistant/V1/AssistantService.cs

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,12 @@ public AssistantService(string versionDate, Credentials credentials) : base(vers
136136
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
137137
/// <param name="workspaceId">Unique identifier of the workspace.</param>
138138
/// <param name="input">An input object that includes the input text. (optional)</param>
139-
/// <param name="intents">An array of intents recognized in the user input, sorted in descending order of
140-
/// confidence. (optional)</param>
141-
/// <param name="entities">An array of entities identified in the user input. (optional)</param>
139+
/// <param name="intents">Intents to use when evaluating the user input. Include intents from the previous
140+
/// response to continue using those intents rather than trying to recognize intents in the new input.
141+
/// (optional)</param>
142+
/// <param name="entities">Entities to use when evaluating the message. Include entities from the previous
143+
/// response to continue using those entities rather than detecting entities in the new input.
144+
/// (optional)</param>
142145
/// <param name="alternateIntents">Whether to return more than one intent. A value of `true` indicates that all
143146
/// matching intents are returned. (optional, default to false)</param>
144147
/// <param name="context">State information for the conversation. To maintain state, include the context from
@@ -519,8 +522,7 @@ private void OnGetWorkspaceResponse(RESTConnector.Request req, RESTConnector.Res
519522
/// This operation is limited to 500 requests per 30 minutes. For more information, see **Rate limiting**.
520523
/// </summary>
521524
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
522-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
523-
/// 100)</param>
525+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
524526
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
525527
/// default to false)</param>
526528
/// <param name="sort">The attribute by which returned workspaces will be sorted. To reverse the sort order,
@@ -1009,8 +1011,7 @@ private void OnGetIntentResponse(RESTConnector.Request req, RESTConnector.Respon
10091011
/// <param name="export">Whether to include all element content in the returned data. If **export**=`false`, the
10101012
/// returned data includes only information about the element itself. If **export**=`true`, all content,
10111013
/// including subelements, is included. (optional, default to false)</param>
1012-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
1013-
/// 100)</param>
1014+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
10141015
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
10151016
/// default to false)</param>
10161017
/// <param name="sort">The attribute by which returned intents will be sorted. To reverse the sort order, prefix
@@ -1468,8 +1469,7 @@ private void OnGetExampleResponse(RESTConnector.Request req, RESTConnector.Respo
14681469
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
14691470
/// <param name="workspaceId">Unique identifier of the workspace.</param>
14701471
/// <param name="intent">The intent name.</param>
1471-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
1472-
/// 100)</param>
1472+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
14731473
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
14741474
/// default to false)</param>
14751475
/// <param name="sort">The attribute by which returned examples will be sorted. To reverse the sort order,
@@ -1915,8 +1915,7 @@ private void OnGetCounterexampleResponse(RESTConnector.Request req, RESTConnecto
19151915
/// </summary>
19161916
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
19171917
/// <param name="workspaceId">Unique identifier of the workspace.</param>
1918-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
1919-
/// 100)</param>
1918+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
19201919
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
19211920
/// default to false)</param>
19221921
/// <param name="sort">The attribute by which returned counterexamples will be sorted. To reverse the sort
@@ -2377,8 +2376,7 @@ private void OnGetEntityResponse(RESTConnector.Request req, RESTConnector.Respon
23772376
/// <param name="export">Whether to include all element content in the returned data. If **export**=`false`, the
23782377
/// returned data includes only information about the element itself. If **export**=`true`, all content,
23792378
/// including subelements, is included. (optional, default to false)</param>
2380-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
2381-
/// 100)</param>
2379+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
23822380
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
23832381
/// default to false)</param>
23842382
/// <param name="sort">The attribute by which returned entities will be sorted. To reverse the sort order,
@@ -2958,8 +2956,7 @@ private void OnGetValueResponse(RESTConnector.Request req, RESTConnector.Respons
29582956
/// <param name="export">Whether to include all element content in the returned data. If **export**=`false`, the
29592957
/// returned data includes only information about the element itself. If **export**=`true`, all content,
29602958
/// including subelements, is included. (optional, default to false)</param>
2961-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
2962-
/// 100)</param>
2959+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
29632960
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
29642961
/// default to false)</param>
29652962
/// <param name="sort">The attribute by which returned entity values will be sorted. To reverse the sort order,
@@ -3442,8 +3439,7 @@ private void OnGetSynonymResponse(RESTConnector.Request req, RESTConnector.Respo
34423439
/// <param name="workspaceId">Unique identifier of the workspace.</param>
34433440
/// <param name="entity">The name of the entity.</param>
34443441
/// <param name="value">The text of the entity value.</param>
3445-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
3446-
/// 100)</param>
3442+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
34473443
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
34483444
/// default to false)</param>
34493445
/// <param name="sort">The attribute by which returned entity value synonyms will be sorted. To reverse the sort
@@ -3949,8 +3945,7 @@ private void OnGetDialogNodeResponse(RESTConnector.Request req, RESTConnector.Re
39493945
/// </summary>
39503946
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
39513947
/// <param name="workspaceId">Unique identifier of the workspace.</param>
3952-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
3953-
/// 100)</param>
3948+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
39543949
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
39553950
/// default to false)</param>
39563951
/// <param name="sort">The attribute by which returned dialog nodes will be sorted. To reverse the sort order,
@@ -4210,8 +4205,7 @@ private void OnUpdateDialogNodeResponse(RESTConnector.Request req, RESTConnector
42104205
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
42114206
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional, default to
42124207
/// request_timestamp)</param>
4213-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
4214-
/// 100)</param>
4208+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
42154209
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
42164210
/// <returns><see cref="LogCollection" />LogCollection</returns>
42174211
public bool ListAllLogs(Callback<LogCollection> callback, string filter, string sort = null, long? pageLimit = null, string cursor = null)
@@ -4310,8 +4304,7 @@ private void OnListAllLogsResponse(RESTConnector.Request req, RESTConnector.Resp
43104304
/// For more information, see the
43114305
/// [documentation](https://cloud.ibm.com/docs/services/assistant/filter-reference.html#filter-reference-syntax).
43124306
/// (optional)</param>
4313-
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
4314-
/// 100)</param>
4307+
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
43154308
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
43164309
/// <returns><see cref="LogCollection" />LogCollection</returns>
43174310
public bool ListLogs(Callback<LogCollection> callback, string workspaceId, string sort = null, string filter = null, long? pageLimit = null, string cursor = null)

Scripts/Services/Assistant/V1/Model/BaseMessage.cs renamed to Scripts/Services/Assistant/V1/Model/MessageRequest.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,24 @@
2222
namespace IBM.Watson.Assistant.V1.Model
2323
{
2424
/// <summary>
25-
/// BaseMessage.
25+
/// A request sent to the workspace, including the user input and context.
2626
/// </summary>
27-
public class BaseMessage
27+
public class MessageRequest
2828
{
2929
/// <summary>
3030
/// An input object that includes the input text.
3131
/// </summary>
3232
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
3333
public JObject Input { get; set; }
3434
/// <summary>
35-
/// An array of intents recognized in the user input, sorted in descending order of confidence.
35+
/// Intents to use when evaluating the user input. Include intents from the previous response to continue using
36+
/// those intents rather than trying to recognize intents in the new input.
3637
/// </summary>
3738
[JsonProperty("intents", NullValueHandling = NullValueHandling.Ignore)]
3839
public List<JObject> Intents { get; set; }
3940
/// <summary>
40-
/// An array of entities identified in the user input.
41+
/// Entities to use when evaluating the message. Include entities from the previous response to continue using
42+
/// those entities rather than detecting entities in the new input.
4143
/// </summary>
4244
[JsonProperty("entities", NullValueHandling = NullValueHandling.Ignore)]
4345
public List<JObject> Entities { get; set; }
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Services/Assistant/V1/Model/ModelLog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class ModelLog
2828
/// A request sent to the workspace, including the user input and context.
2929
/// </summary>
3030
[JsonProperty("request", NullValueHandling = NullValueHandling.Ignore)]
31-
public BaseMessage Request { get; set; }
31+
public MessageRequest Request { get; set; }
3232
/// <summary>
3333
/// The response sent by the workspace, including the output text, detected intents and entities, and context.
3434
/// </summary>

0 commit comments

Comments
 (0)