Clean Chat Context
This clean_chat_context
method allows you to clean the context of a chat session so new assistant responses are not influenced by previous chat context anymore.
import taskingai
taskingai.assistant.clean_chat_context(
assistant_id="YOUR_ASSISTANT_ID",
chat_id="YOUR_CHAT_ID",
)
If the method doesn't raise an error, the context of the chat session will be cleaned successfully.