Skip to content

Commit 786bd3d

Browse files
authored
Merge pull request #100 from watson-developer-cloud/fic-99
Add example of how to continue conversation, fixes #99
2 parents f0c3231 + 1aa262e commit 786bd3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/conversation_v1.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@
1111

1212
response = conversation.message(workspace_id=workspace_id, message_input={'text': 'What\'s the weather like?'})
1313
print(json.dumps(response, indent=2))
14+
15+
# When you send multiple requests for the same conversation, include the context object from the previous response.
16+
# response = conversation.message(workspace_id=workspace_id, message_input={'text': 'turn the wipers on'},
17+
context=response['context'])
18+
# print(json.dumps(response, indent=2))

0 commit comments

Comments
 (0)