Skip to content

File type and Synthesized Filename parameters #539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Core
39 changes: 16 additions & 23 deletions Scripts/Services/Assistant/V1/AssistantService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,12 @@ public AssistantService(string versionDate, Credentials credentials) : base(vers
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
/// <param name="workspaceId">Unique identifier of the workspace.</param>
/// <param name="input">An input object that includes the input text. (optional)</param>
/// <param name="intents">An array of intents recognized in the user input, sorted in descending order of
/// confidence. (optional)</param>
/// <param name="entities">An array of entities identified in the user input. (optional)</param>
/// <param name="intents">Intents to use when evaluating the user input. Include intents from the previous
/// response to continue using those intents rather than trying to recognize intents in the new input.
/// (optional)</param>
/// <param name="entities">Entities to use when evaluating the message. Include entities from the previous
/// response to continue using those entities rather than detecting entities in the new input.
/// (optional)</param>
/// <param name="alternateIntents">Whether to return more than one intent. A value of `true` indicates that all
/// matching intents are returned. (optional, default to false)</param>
/// <param name="context">State information for the conversation. To maintain state, include the context from
Expand Down Expand Up @@ -519,8 +522,7 @@ private void OnGetWorkspaceResponse(RESTConnector.Request req, RESTConnector.Res
/// This operation is limited to 500 requests per 30 minutes. For more information, see **Rate limiting**.
/// </summary>
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned workspaces will be sorted. To reverse the sort order,
Expand Down Expand Up @@ -1009,8 +1011,7 @@ private void OnGetIntentResponse(RESTConnector.Request req, RESTConnector.Respon
/// <param name="export">Whether to include all element content in the returned data. If **export**=`false`, the
/// returned data includes only information about the element itself. If **export**=`true`, all content,
/// including subelements, is included. (optional, default to false)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned intents will be sorted. To reverse the sort order, prefix
Expand Down Expand Up @@ -1468,8 +1469,7 @@ private void OnGetExampleResponse(RESTConnector.Request req, RESTConnector.Respo
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
/// <param name="workspaceId">Unique identifier of the workspace.</param>
/// <param name="intent">The intent name.</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned examples will be sorted. To reverse the sort order,
Expand Down Expand Up @@ -1915,8 +1915,7 @@ private void OnGetCounterexampleResponse(RESTConnector.Request req, RESTConnecto
/// </summary>
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
/// <param name="workspaceId">Unique identifier of the workspace.</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned counterexamples will be sorted. To reverse the sort
Expand Down Expand Up @@ -2377,8 +2376,7 @@ private void OnGetEntityResponse(RESTConnector.Request req, RESTConnector.Respon
/// <param name="export">Whether to include all element content in the returned data. If **export**=`false`, the
/// returned data includes only information about the element itself. If **export**=`true`, all content,
/// including subelements, is included. (optional, default to false)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned entities will be sorted. To reverse the sort order,
Expand Down Expand Up @@ -2958,8 +2956,7 @@ private void OnGetValueResponse(RESTConnector.Request req, RESTConnector.Respons
/// <param name="export">Whether to include all element content in the returned data. If **export**=`false`, the
/// returned data includes only information about the element itself. If **export**=`true`, all content,
/// including subelements, is included. (optional, default to false)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned entity values will be sorted. To reverse the sort order,
Expand Down Expand Up @@ -3442,8 +3439,7 @@ private void OnGetSynonymResponse(RESTConnector.Request req, RESTConnector.Respo
/// <param name="workspaceId">Unique identifier of the workspace.</param>
/// <param name="entity">The name of the entity.</param>
/// <param name="value">The text of the entity value.</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned entity value synonyms will be sorted. To reverse the sort
Expand Down Expand Up @@ -3949,8 +3945,7 @@ private void OnGetDialogNodeResponse(RESTConnector.Request req, RESTConnector.Re
/// </summary>
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
/// <param name="workspaceId">Unique identifier of the workspace.</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned dialog nodes will be sorted. To reverse the sort order,
Expand Down Expand Up @@ -4210,8 +4205,7 @@ private void OnUpdateDialogNodeResponse(RESTConnector.Request req, RESTConnector
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional, default to
/// request_timestamp)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <returns><see cref="LogCollection" />LogCollection</returns>
public bool ListAllLogs(Callback<LogCollection> callback, string filter, string sort = null, long? pageLimit = null, string cursor = null)
Expand Down Expand Up @@ -4310,8 +4304,7 @@ private void OnListAllLogsResponse(RESTConnector.Request req, RESTConnector.Resp
/// For more information, see the
/// [documentation](https://cloud.ibm.com/docs/services/assistant/filter-reference.html#filter-reference-syntax).
/// (optional)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <returns><see cref="LogCollection" />LogCollection</returns>
public bool ListLogs(Callback<LogCollection> callback, string workspaceId, string sort = null, string filter = null, long? pageLimit = null, string cursor = null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,24 @@
namespace IBM.Watson.Assistant.V1.Model
{
/// <summary>
/// BaseMessage.
/// A request sent to the workspace, including the user input and context.
/// </summary>
public class BaseMessage
public class MessageRequest
{
/// <summary>
/// An input object that includes the input text.
/// </summary>
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
public JObject Input { get; set; }
/// <summary>
/// An array of intents recognized in the user input, sorted in descending order of confidence.
/// Intents to use when evaluating the user input. Include intents from the previous response to continue using
/// those intents rather than trying to recognize intents in the new input.
/// </summary>
[JsonProperty("intents", NullValueHandling = NullValueHandling.Ignore)]
public List<JObject> Intents { get; set; }
/// <summary>
/// An array of entities identified in the user input.
/// Entities to use when evaluating the message. Include entities from the previous response to continue using
/// those entities rather than detecting entities in the new input.
/// </summary>
[JsonProperty("entities", NullValueHandling = NullValueHandling.Ignore)]
public List<JObject> Entities { get; set; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Scripts/Services/Assistant/V1/Model/ModelLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ModelLog
/// A request sent to the workspace, including the user input and context.
/// </summary>
[JsonProperty("request", NullValueHandling = NullValueHandling.Ignore)]
public BaseMessage Request { get; set; }
public MessageRequest Request { get; set; }
/// <summary>
/// The response sent by the workspace, including the output text, detected intents and entities, and context.
/// </summary>
Expand Down
Loading