2
2
3
3
from __future__ import annotations
4
4
5
- from typing import Dict , Iterable , Optional
5
+ from typing import Iterable , Optional
6
6
7
7
import httpx
8
8
@@ -115,7 +115,7 @@ def retrieve(
115
115
timeout : float | httpx .Timeout | None | NotGiven = not_given ,
116
116
) -> Conversation :
117
117
"""
118
- Get a conversation with the given ID.
118
+ Get a conversation
119
119
120
120
Args:
121
121
extra_headers: Send extra headers
@@ -140,7 +140,7 @@ def update(
140
140
self ,
141
141
conversation_id : str ,
142
142
* ,
143
- metadata : Dict [ str , str ],
143
+ metadata : Optional [ Metadata ],
144
144
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
145
145
# The extra values given here take precedence over values defined on the client or passed to this method.
146
146
extra_headers : Headers | None = None ,
@@ -149,14 +149,15 @@ def update(
149
149
timeout : float | httpx .Timeout | None | NotGiven = not_given ,
150
150
) -> Conversation :
151
151
"""
152
- Update a conversation's metadata with the given ID.
152
+ Update a conversation
153
153
154
154
Args:
155
155
metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
156
156
for storing additional information about the object in a structured format, and
157
- querying for objects via API or the dashboard. Keys are strings with a maximum
158
- length of 64 characters. Values are strings with a maximum length of 512
159
- characters.
157
+ querying for objects via API or the dashboard.
158
+
159
+ Keys are strings with a maximum length of 64 characters. Values are strings with
160
+ a maximum length of 512 characters.
160
161
161
162
extra_headers: Send extra headers
162
163
@@ -188,8 +189,9 @@ def delete(
188
189
extra_body : Body | None = None ,
189
190
timeout : float | httpx .Timeout | None | NotGiven = not_given ,
190
191
) -> ConversationDeletedResource :
191
- """
192
- Delete a conversation with the given ID.
192
+ """Delete a conversation.
193
+
194
+ Items in the conversation will not be deleted.
193
195
194
196
Args:
195
197
extra_headers: Send extra headers
@@ -296,7 +298,7 @@ async def retrieve(
296
298
timeout : float | httpx .Timeout | None | NotGiven = not_given ,
297
299
) -> Conversation :
298
300
"""
299
- Get a conversation with the given ID.
301
+ Get a conversation
300
302
301
303
Args:
302
304
extra_headers: Send extra headers
@@ -321,7 +323,7 @@ async def update(
321
323
self ,
322
324
conversation_id : str ,
323
325
* ,
324
- metadata : Dict [ str , str ],
326
+ metadata : Optional [ Metadata ],
325
327
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
326
328
# The extra values given here take precedence over values defined on the client or passed to this method.
327
329
extra_headers : Headers | None = None ,
@@ -330,14 +332,15 @@ async def update(
330
332
timeout : float | httpx .Timeout | None | NotGiven = not_given ,
331
333
) -> Conversation :
332
334
"""
333
- Update a conversation's metadata with the given ID.
335
+ Update a conversation
334
336
335
337
Args:
336
338
metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
337
339
for storing additional information about the object in a structured format, and
338
- querying for objects via API or the dashboard. Keys are strings with a maximum
339
- length of 64 characters. Values are strings with a maximum length of 512
340
- characters.
340
+ querying for objects via API or the dashboard.
341
+
342
+ Keys are strings with a maximum length of 64 characters. Values are strings with
343
+ a maximum length of 512 characters.
341
344
342
345
extra_headers: Send extra headers
343
346
@@ -371,8 +374,9 @@ async def delete(
371
374
extra_body : Body | None = None ,
372
375
timeout : float | httpx .Timeout | None | NotGiven = not_given ,
373
376
) -> ConversationDeletedResource :
374
- """
375
- Delete a conversation with the given ID.
377
+ """Delete a conversation.
378
+
379
+ Items in the conversation will not be deleted.
376
380
377
381
Args:
378
382
extra_headers: Send extra headers
0 commit comments