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.checkpointbaseBaseCheckpointSavercopy_thread
    Method●Since v4.0

    copy_thread

    Copy
    copy_thread(
      self,
      source_thread_id: str,
      target_thread_id: str
    ) -> None
    View source on GitHub

    Parameters

    NameTypeDescription
    source_thread_id*str

    The thread ID to copy from.

    target_thread_id*str

    The thread ID to copy to.

    Copy all checkpoints and writes from one thread to another.