Replies: 1 comment 9 replies
-
Hi @JasonL233, thanks for your question. We have a sample of serializing a chat history to CosmosDB in the following sample. It should be something you could attempt to adapt to your use-case, while we work on (in the next few weeks) providing a more concrete solution to doing this with the thread abstraction: https://github.com/microsoft/semantic-kernel/blob/main/python/samples/concepts/chat_history/store_chat_history_in_cosmosdb.py. The sample above isn't strictly for agents, but you are able to create a thread with a chat history object - you could use a similar construct. Let me know your thoughts, please. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community,
The following is the current method I used to serialize and deserialize thread to MongoDB. However, I am writing a custom serializer and deserializer, it works but I don't think this is the proper way to do it. I am wondering if there is a better and connivence way to perform serialization and deserialization into NoSql database like MongoDB.
Also, I add message into the thread using the ChatMessageContent Class, is this the correct way to do it?
I would appreciate if I can get any advice and help. Thank you!
Serializer
Deserializer
Beta Was this translation helpful? Give feedback.
All reactions