I currently only use create_manage_memory_tool and create_search_memory_tool in my deepagent which has a PostgreSQL store as the composite backend. Previously I follow examples provided in https://github.com/langchain-ai/memory-agent and I have never seen any persistence record in the store table of my PostgreSQL database then and now. How to use this library to persist and use long-term memory?
I see this in the log:
2026-04-07 15:12:59 DEBUG Failed to use model_dump to serialize <class 'langmem.knowledge.tools._ToolWithRequired'> to JSON: PydanticSerializationError(Unable to serialize unknown type: <class 'pydantic._internal._model_construction.ModelMetaclass'>)
I currently only use
create_manage_memory_toolandcreate_search_memory_toolin my deepagent which has aPostgreSQLstore as the composite backend. Previously I follow examples provided in https://github.com/langchain-ai/memory-agent and I have never seen any persistence record in thestoretable of myPostgreSQLdatabase then and now. How to use this library to persist and use long-term memory?I see this in the log: