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-sdk_asyncthreadsThreadsClientcopy
    Method●Since v0.3

    copy

    Copy
    copy(
      self,
      thread_id: str,
      *,
      headers: Mapping[str, str] |
    View source on GitHub
    None
    =
    None
    ,
    params
    :
    QueryParamTypes
    |
    None
    =
    None
    )
    ->
    None

    Parameters

    NameTypeDescription
    thread_id*str

    The ID of the thread to copy.

    headersMapping[str, str] | None
    Default:None

    Optional custom headers to include with the request.

    paramsQueryParamTypes | None
    Default:None

    Copy a thread.

    client = get_client(url="http://localhost:2024)
    await client.threads.copy(
        thread_id="my_thread_id"
    )

    Optional query parameters to include with the request.