@@ -29,14 +29,15 @@ def __init__(self, version, url=default_url, **kwargs):
2929 WatsonDeveloperCloudService .__init__ (self , 'conversation' , url , ** kwargs )
3030 self .version = version
3131
32- def message (self , workspace_id , message_input = None , context = None , entities = None , intents = None , output = None ):
32+ def message (self , workspace_id , message_input = None , context = None , entities = None , intents = None , output = None , alternate_intents = None ):
3333 """
3434 Retrieves information about a specific classifier.
3535 :param workspace_id: The workspace to use
3636 :param message_input: The input, usually containing a text field
3737 :param context: The optional context object
3838 :param entities: The optional entities
3939 :param intents: The optional intents
40+ :param alternate_intents: Whether to return more than one intent.
4041 :param output: The optional output object
4142 """
4243
@@ -45,6 +46,7 @@ def message(self, workspace_id, message_input=None, context=None, entities=None,
4546 'context' : context ,
4647 'entities' : entities ,
4748 'intents' : intents ,
49+ 'alternate_intents' : alternate_intents ,
4850 'output' : output }
4951 return self .request (method = 'POST' , url = '/v1/workspaces/{0}/message' .format (workspace_id ), params = params ,
5052 json = data , accept_json = True )
0 commit comments