Update Chat
This update_chat
method allows you to update the metadata and name of a chat session.
import taskingai
chat = taskingai.assistant.update_chat(
assistant_id="YOUR_ASSISTANT_ID",
chat_id="YOUR_CHAT_ID",
name='Updated Chat',
metadata={
"user_country": "Australia",
"user_age": "25",
},
)
print(f"updated chat: {chat}\n")
The method returns a Chat object, representing the updated chat session.