LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-coreindexingbaseInMemoryRecordManager
    Class●Since v0.2

    InMemoryRecordManager

    Copy
    InMemoryRecordManager(
        self,
        namespace: str,
    )

    Bases

    RecordManager

    Constructors

    Attributes

    Methods

    View source on GitHub

    Parameters

    NameTypeDescription
    namespace*str

    The namespace for the record manager.

    constructor
    __init__
    NameType
    namespacestr
    attribute
    records: dict[str, _Record]
    attribute
    namespace: namespace
    method
    create_schema

    In-memory schema creation is simply ensuring the structure is initialized.

    method
    acreate_schema

    In-memory schema creation is simply ensuring the structure is initialized.

    method
    get_time
    method
    aget_time
    method
    update

    Upsert records into the database.

    method
    aupdate

    Async upsert records into the database.

    method
    exists

    Check if the provided keys exist in the database.

    method
    aexists

    Async check if the provided keys exist in the database.

    method
    list_keys

    List records in the database based on the provided filters.

    method
    alist_keys

    Async list records in the database based on the provided filters.

    method
    delete_keys

    Delete specified records from the database.

    method
    adelete_keys

    Async delete specified records from the database.

    An in-memory record manager for testing purposes.