LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpointmemoryInMemorySaverput
    Method●Since v2.0

    put

    Save a checkpoint to the in-memory storage.

    This method saves a checkpoint to the in-memory storage. The checkpoint is associated with the provided config.

    Copy
    put(
      self,
      config: RunnableConfig,
      checkpoint: Checkpoint,
      metadata: CheckpointMetadata,
      new_versions: ChannelVersions
    ) -> RunnableConfig

    Parameters

    NameTypeDescription
    config*RunnableConfig

    The config to associate with the checkpoint.

    checkpoint*Checkpoint

    The checkpoint to save.

    metadata*CheckpointMetadata

    Additional metadata to save with the checkpoint.

    new_versions*ChannelVersions

    New versions as of this write

    View source on GitHub