File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,15 +70,15 @@ This version includes many breaking changes as a result of standardizing behavio
7070To set client configs like timeout use the ` with_http_config() ` function and pass it a dictionary of configs.
7171
7272``` python
73- from watson_developer_cloud import ConversationV1
73+ from watson_developer_cloud import AssistantV1
7474
75- conversation = ConversationV1 (
75+ assistant = AssistantV1 (
7676 username = ' xxx' ,
7777 password = ' yyy' ,
7878 version = ' 2017-04-21' )
7979
80- conversation .set_http_config({' timeout' : 100 })
81- response = conversation .message(workspace_id = workspace_id, input = {
80+ assistant .set_http_config({' timeout' : 100 })
81+ response = assistant .message(workspace_id = workspace_id, input = {
8282 ' text' : ' What\' s the weather like?' })
8383print (json.dumps(response, indent = 2 ))
8484```
You can’t perform that action at this time.
0 commit comments