The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Xata chat memory FIX (#11145)
Nan LI53a9d6115ebc
diff --git a/libs/langchain/langchain/memory/chat_message_histories/xata.py b/libs/langchain/langchain/memory/chat_message_histories/xata.pyindex de358888a0..a51da97a46 100644--- a/libs/langchain/langchain/memory/chat_message_histories/xata.py+++ b/libs/langchain/langchain/memory/chat_message_histories/xata.py@@ -56,7 +56,7 @@ class XataChatMessageHistory(BaseChatMessageHistory):{"name": "role", "type": "string"},{"name": "content", "type": "text"},{"name": "name", "type": "string"},- {"name": "additionalKwargs", "type": "text"},+ {"name": "additionalKwargs", "type": "json"},]},)@@ -101,7 +101,7 @@ class XataChatMessageHistory(BaseChatMessageHistory):"content": m["content"],"role": m.get("role"),"name": m.get("name"),- "additionalKwargs": json.loads(m["additionalKwargs"]),+ "additional_kwargs": json.loads(m["additionalKwargs"]),},}for m in r["records"]