You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: watson_developer_cloud/conversation_v1.py
+89-8Lines changed: 89 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# coding: utf-8
2
2
3
-
# Copyright 2017 IBM All Rights Reserved.
3
+
# Copyright 2018 IBM All Rights Reserved.
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
@@ -213,7 +213,8 @@ def update_workspace(self,
213
213
dialog_nodes=None,
214
214
counterexamples=None,
215
215
metadata=None,
216
-
learning_opt_out=None):
216
+
learning_opt_out=None,
217
+
append=None):
217
218
"""
218
219
Update workspace.
219
220
@@ -230,6 +231,7 @@ def update_workspace(self,
230
231
:param list[CreateCounterexample] counterexamples: An array of objects defining input examples that have been marked as irrelevant input.
231
232
:param object metadata: Any metadata related to the workspace.
232
233
:param bool learning_opt_out: Whether training data from the workspace can be used by IBM for general service improvements. `true` indicates that workspace training data is not to be used.
234
+
:param bool append: Specifies that the elements included in the request body are to be appended to the existing data in the workspace. The default value is `false`.
233
235
:return: A `dict` containing the `Workspace` response.
:param list[RuntimeEntity] entities: Include the entities from the previous response when they do not need to change and to prevent Watson from trying to identify them.
283
287
:param list[RuntimeIntent] intents: An array of name-confidence pairs for the user input. Include the intents from the previous response when they do not need to change and to prevent Watson from trying to identify them.
284
288
:param OutputData output: System output. Include the output from the request when you have several requests within the same Dialog turn to pass back in the intermediate information.
289
+
:param bool nodes_visited_details: Whether to include additional diagnostic information about the dialog nodes that were visited during processing of the message.
285
290
:return: A `dict` containing the `MessageResponse` response.
"""Return a `str` version of this DialogNodeVisitedDetails object."""
2776
+
returnjson.dumps(self._to_dict(), indent=2)
2777
+
2778
+
def__eq__(self, other):
2779
+
"""Return `true` when self and other are equal, false otherwise."""
2780
+
ifnotisinstance(other, self.__class__):
2781
+
returnFalse
2782
+
returnself.__dict__==other.__dict__
2783
+
2784
+
def__ne__(self, other):
2785
+
"""Return `true` when self and other are not equal, false otherwise."""
2786
+
returnnotself==other
2787
+
2788
+
2729
2789
classEntity(object):
2730
2790
"""
2731
2791
Entity.
@@ -3980,20 +4040,28 @@ class OutputData(object):
3980
4040
:attr list[LogMessage] log_messages: Up to 50 messages logged with the request.
3981
4041
:attr list[str] text: An array of responses to the user.
3982
4042
:attr list[str] nodes_visited: (optional) An array of the nodes that were triggered to create the response.
4043
+
:attr list[DialogNodeVisitedDetails] nodes_visited_details: (optional) An array of objects containing detailed diagnostic information about the nodes that were triggered during processing of the input message.
:param list[LogMessage] log_messages: Up to 50 messages logged with the request.
3990
4056
:param list[str] text: An array of responses to the user.
3991
4057
:param list[str] nodes_visited: (optional) An array of the nodes that were triggered to create the response.
4058
+
:param list[DialogNodeVisitedDetails] nodes_visited_details: (optional) An array of objects containing detailed diagnostic information about the nodes that were triggered during processing of the input message.
3992
4059
:param **kwargs: (optional) Any additional properties.
0 commit comments