Skip to content

Persistence? #154

@khteh

Description

@khteh

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'>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions