-
===================================================== My agent is making a function call also. While saving the chat, getting the following error: File "site-packages/semantic_kernel/contents/chat_history.py", line 377, in store_chat_history_to_file |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @j-ajim, what version of SK are you running? I am unable to repro this error after adding history = thread._chat_history
history.store_chat_history_to_file("chat_history.json") The chat history is serialized properly and stored to a file without error. Looks like you have some custom code in a plugin that is related to an AIServiceSelector? As we don't provide a way to pass in custom |
Beta Was this translation helpful? Give feedback.
-
Thanks..this happened because I was reading kernel parameter in my plugin. |
Beta Was this translation helpful? Give feedback.
Hi @j-ajim, what version of SK are you running?
I am unable to repro this error after adding
To this sample: https://github.com/microsoft/semantic-kernel/blob/main/python/samples/getting_started_with_agents/chat_completion/step4_chat_completion_agent_plugin_simple.py
The chat history is serialized properly and stored to a file without error.
Looks like you have some custom code in a plugin that is related to an AIServiceSelector? As we don't provide a way to pass in custom
exclude
attributes to themodel_dump_json
call thatserialize
uses, I'd suggest you look into performing themodel_dump_json(exclude…