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_writes
    Method●Since v2.0

    put_writes

    Save a list of writes to the in-memory storage.

    This method saves a list of writes to the in-memory storage. The writes are associated with the provided config.

    Copy
    put_writes(
      self,
      config: RunnableConfig,
      writes: Sequence[tuple[str, Any]],
      task_id: str,
      task_path: str = ''
    ) -> None

    Parameters

    NameTypeDescription
    config*RunnableConfig

    The config to associate with the writes.

    writes*Sequence[tuple[str, Any]]

    The writes to save.

    task_id*str

    Identifier for the task creating the writes.

    task_pathstr
    Default:''

    Path of the task creating the writes.

    View source on GitHub