Skip to content

Commit 1e26b8e

Browse files
committed
fix(python sdk): Fix timestamps & context properties
1 parent 23dbef0 commit 1e26b8e

2 files changed

Lines changed: 91 additions & 176 deletions

File tree

examples/assistant_v1.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,14 @@
5656

5757
# message
5858
response = assistant.message(
59-
workspace_id=workspace_id, input={
59+
workspace_id=workspace_id,
60+
input={
6061
'text': 'What\'s the weather like?'
62+
},
63+
context={
64+
'metadata': {
65+
'deployment': 'myDeployment'
66+
}
6167
})
6268
print(json.dumps(response, indent=2))
6369

0 commit comments

Comments
 (0)