Skip to content

Commit 9ad75d7

Browse files
committed
feat(assistant-v1): RuntimeEntityAlternative model added
plus docs changes
1 parent f65463f commit 9ad75d7

File tree

1 file changed

+34
-18
lines changed

1 file changed

+34
-18
lines changed

assistant/v1.ts

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ class AssistantV1 extends BaseService {
11001100
*
11011101
* Add a new user input example to an intent.
11021102
*
1103-
* If you want to add multiple exaples with a single API call, consider using the **[Update intent](#update-intent)**
1103+
* If you want to add multiple examples with a single API call, consider using the **[Update intent](#update-intent)**
11041104
* method instead.
11051105
*
11061106
* This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
@@ -3325,7 +3325,7 @@ class AssistantV1 extends BaseService {
33253325
* @param {string} [params.userLabel] - A label that can be displayed externally to describe the purpose of the node
33263326
* to users.
33273327
* @param {boolean} [params.disambiguationOptOut] - Whether the dialog node should be excluded from disambiguation
3328-
* suggestions.
3328+
* suggestions. Valid only when **type**=`standard` or `frame`.
33293329
* @param {boolean} [params.includeAudit] - Whether to include the audit properties (`created` and `updated`
33303330
* timestamps) in the response.
33313331
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -3532,7 +3532,7 @@ class AssistantV1 extends BaseService {
35323532
* @param {string} [params.newUserLabel] - A label that can be displayed externally to describe the purpose of the
35333533
* node to users.
35343534
* @param {boolean} [params.newDisambiguationOptOut] - Whether the dialog node should be excluded from disambiguation
3535-
* suggestions.
3535+
* suggestions. Valid only when **type**=`standard` or `frame`.
35363536
* @param {boolean} [params.includeAudit] - Whether to include the audit properties (`created` and `updated`
35373537
* timestamps) in the response.
35383538
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -4836,7 +4836,9 @@ namespace AssistantV1 {
48364836
digressOutSlots?: CreateDialogNodeConstants.DigressOutSlots | string;
48374837
/** A label that can be displayed externally to describe the purpose of the node to users. */
48384838
userLabel?: string;
4839-
/** Whether the dialog node should be excluded from disambiguation suggestions. */
4839+
/** Whether the dialog node should be excluded from disambiguation suggestions. Valid only when
4840+
* **type**=`standard` or `frame`.
4841+
*/
48404842
disambiguationOptOut?: boolean;
48414843
/** Whether to include the audit properties (`created` and `updated` timestamps) in the response. */
48424844
includeAudit?: boolean;
@@ -4949,7 +4951,9 @@ namespace AssistantV1 {
49494951
newDigressOutSlots?: UpdateDialogNodeConstants.DigressOutSlots | string;
49504952
/** A label that can be displayed externally to describe the purpose of the node to users. */
49514953
newUserLabel?: string;
4952-
/** Whether the dialog node should be excluded from disambiguation suggestions. */
4954+
/** Whether the dialog node should be excluded from disambiguation suggestions. Valid only when
4955+
* **type**=`standard` or `frame`.
4956+
*/
49534957
newDisambiguationOptOut?: boolean;
49544958
/** Whether to include the audit properties (`created` and `updated` timestamps) in the response. */
49554959
includeAudit?: boolean;
@@ -5214,7 +5218,9 @@ namespace AssistantV1 {
52145218
digress_out_slots?: string;
52155219
/** A label that can be displayed externally to describe the purpose of the node to users. */
52165220
user_label?: string;
5217-
/** Whether the dialog node should be excluded from disambiguation suggestions. */
5221+
/** Whether the dialog node should be excluded from disambiguation suggestions. Valid only when
5222+
* **type**=`standard` or `frame`.
5223+
*/
52185224
disambiguation_opt_out?: boolean;
52195225
/** For internal use only. */
52205226
disabled?: boolean;
@@ -5330,16 +5336,15 @@ namespace AssistantV1 {
53305336
message_to_human_agent?: string;
53315337
/** The text of the search query. This can be either a natural-language query or a query that uses the Discovery
53325338
* query language syntax, depending on the value of the **query_type** property. For more information, see the
5333-
* [Discovery service
5334-
* documentation](https://cloud.ibm.com/docs/services/discovery/query-operators.html#query-operators). Required
5335-
* when **response_type**=`search_skill`.
5339+
* [Discovery service documentation](https://cloud.ibm.com/docs/discovery/query-operators.html#query-operators).
5340+
* Required when **response_type**=`search_skill`.
53365341
*/
53375342
query?: string;
53385343
/** The type of the search query. Required when **response_type**=`search_skill`. */
53395344
query_type?: string;
53405345
/** An optional filter that narrows the set of documents to be searched. For more information, see the
53415346
* [Discovery service documentation]([Discovery service
5342-
* documentation](https://cloud.ibm.com/docs/services/discovery/query-parameters.html#filter).
5347+
* documentation](https://cloud.ibm.com/docs/discovery/query-parameters.html#filter).
53435348
*/
53445349
filter?: string;
53455350
/** The version of the Discovery service API to use for the query. */
@@ -5469,12 +5474,10 @@ namespace AssistantV1 {
54695474
options?: DialogNodeOutputOptionsElement[];
54705475
/** A message to be sent to the human agent who will be taking over the conversation. */
54715476
message_to_human_agent?: string;
5472-
/** A label identifying the topic of the conversation, derived from the **user_label** property of the relevant
5473-
* node.
5474-
*/
5477+
/** A label identifying the topic of the conversation, derived from the **title** property of the relevant node. */
54755478
topic?: string;
54765479
/** The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated
5477-
* using the value of the dialog node's **user_label** property.
5480+
* using the value of the dialog node's **title** property.
54785481
*/
54795482
dialog_node?: string;
54805483
}
@@ -5769,13 +5772,28 @@ namespace AssistantV1 {
57695772
* [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-beta-system-entities).
57705773
*/
57715774
interpretation?: RuntimeEntityInterpretation;
5775+
/** An array of possible alternative values that the user might have intended instead of the value returned in
5776+
* the **value** property. This property is returned only for `@sys-time` and `@sys-date` entities when the user's
5777+
* input is ambiguous.
5778+
*
5779+
* This property is included only if the new system entities are enabled for the workspace.
5780+
*/
5781+
alternatives?: RuntimeEntityAlternative[];
57725782
/** An object describing the role played by a system entity that is specifies the beginning or end of a range
57735783
* recognized in the user input. This property is included only if the new system entities are enabled for the
57745784
* workspace.
57755785
*/
57765786
role?: RuntimeEntityRole;
57775787
}
57785788

5789+
/** An alternative value for the recognized entity. */
5790+
export interface RuntimeEntityAlternative {
5791+
/** The entity value that was recognized in the user input. */
5792+
value?: string;
5793+
/** A decimal percentage that represents Watson's confidence in the recognized entity. */
5794+
confidence?: number;
5795+
}
5796+
57795797
/** RuntimeEntityInterpretation. */
57805798
export interface RuntimeEntityInterpretation {
57815799
/** The calendar used to represent a recognized date (for example, `Gregorian`). */
@@ -5905,12 +5923,10 @@ namespace AssistantV1 {
59055923
options?: DialogNodeOutputOptionsElement[];
59065924
/** A message to be sent to the human agent who will be taking over the conversation. */
59075925
message_to_human_agent?: string;
5908-
/** A label identifying the topic of the conversation, derived from the **user_label** property of the relevant
5909-
* node.
5910-
*/
5926+
/** A label identifying the topic of the conversation, derived from the **title** property of the relevant node. */
59115927
topic?: string;
59125928
/** The ID of the dialog node that the **topic** property is taken from. The **topic** property is populated
5913-
* using the value of the dialog node's **user_label** property.
5929+
* using the value of the dialog node's **title** property.
59145930
*/
59155931
dialog_node?: string;
59165932
/** An array of objects describing the possible matching dialog nodes from which the user can choose.

0 commit comments

Comments
 (0)