@@ -167,6 +167,7 @@ def update(
167167 self ,
168168 conversation_id : str ,
169169 * ,
170+ archived : Optional [bool ] | Omit = omit ,
170171 last_message_at : Union [str , datetime , None ] | Omit = omit ,
171172 model : Optional [str ] | Omit = omit ,
172173 model_settings : Optional [conversation_update_params .ModelSettings ] | Omit = omit ,
@@ -184,6 +185,8 @@ def update(
184185 Args:
185186 conversation_id: The ID of the conv in the format 'conv-<uuid4>'
186187
188+ archived: Whether the conversation is archived.
189+
187190 last_message_at: Timestamp of the most recent message request sent to this conversation.
188191
189192 model:
@@ -208,6 +211,7 @@ def update(
208211 path_template ("/v1/conversations/{conversation_id}" , conversation_id = conversation_id ),
209212 body = maybe_transform (
210213 {
214+ "archived" : archived ,
211215 "last_message_at" : last_message_at ,
212216 "model" : model ,
213217 "model_settings" : model_settings ,
@@ -226,6 +230,7 @@ def list(
226230 * ,
227231 after : Optional [str ] | Omit = omit ,
228232 agent_id : Optional [str ] | Omit = omit ,
233+ archive_status : Literal ["unarchived" , "archived" , "all" ] | Omit = omit ,
229234 limit : int | Omit = omit ,
230235 order : Literal ["asc" , "desc" ] | Omit = omit ,
231236 order_by : Literal ["created_at" , "last_run_completion" , "last_message_at" ] | Omit = omit ,
@@ -247,6 +252,9 @@ def list(
247252 agent_id: The agent ID to list conversations for (optional - returns all conversations if
248253 not provided)
249254
255+ archive_status: Whether to return unarchived conversations only, archived conversations only, or
256+ all conversations
257+
250258 limit: Maximum number of conversations to return
251259
252260 order: Sort order for conversations. 'asc' for oldest first, 'desc' for newest first
@@ -274,6 +282,7 @@ def list(
274282 {
275283 "after" : after ,
276284 "agent_id" : agent_id ,
285+ "archive_status" : archive_status ,
277286 "limit" : limit ,
278287 "order" : order ,
279288 "order_by" : order_by ,
@@ -621,6 +630,7 @@ async def update(
621630 self ,
622631 conversation_id : str ,
623632 * ,
633+ archived : Optional [bool ] | Omit = omit ,
624634 last_message_at : Union [str , datetime , None ] | Omit = omit ,
625635 model : Optional [str ] | Omit = omit ,
626636 model_settings : Optional [conversation_update_params .ModelSettings ] | Omit = omit ,
@@ -638,6 +648,8 @@ async def update(
638648 Args:
639649 conversation_id: The ID of the conv in the format 'conv-<uuid4>'
640650
651+ archived: Whether the conversation is archived.
652+
641653 last_message_at: Timestamp of the most recent message request sent to this conversation.
642654
643655 model:
@@ -662,6 +674,7 @@ async def update(
662674 path_template ("/v1/conversations/{conversation_id}" , conversation_id = conversation_id ),
663675 body = await async_maybe_transform (
664676 {
677+ "archived" : archived ,
665678 "last_message_at" : last_message_at ,
666679 "model" : model ,
667680 "model_settings" : model_settings ,
@@ -680,6 +693,7 @@ async def list(
680693 * ,
681694 after : Optional [str ] | Omit = omit ,
682695 agent_id : Optional [str ] | Omit = omit ,
696+ archive_status : Literal ["unarchived" , "archived" , "all" ] | Omit = omit ,
683697 limit : int | Omit = omit ,
684698 order : Literal ["asc" , "desc" ] | Omit = omit ,
685699 order_by : Literal ["created_at" , "last_run_completion" , "last_message_at" ] | Omit = omit ,
@@ -701,6 +715,9 @@ async def list(
701715 agent_id: The agent ID to list conversations for (optional - returns all conversations if
702716 not provided)
703717
718+ archive_status: Whether to return unarchived conversations only, archived conversations only, or
719+ all conversations
720+
704721 limit: Maximum number of conversations to return
705722
706723 order: Sort order for conversations. 'asc' for oldest first, 'desc' for newest first
@@ -728,6 +745,7 @@ async def list(
728745 {
729746 "after" : after ,
730747 "agent_id" : agent_id ,
748+ "archive_status" : archive_status ,
731749 "limit" : limit ,
732750 "order" : order ,
733751 "order_by" : order_by ,
0 commit comments