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-sdkschemaThread
    Classā—Since v0.1

    Thread

    Represents a conversation thread.

    Copy
    Thread()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    thread_idstr
    created_atdatetime
    updated_atdatetime
    metadataJson
    statusThreadStatus
    valuesJson
    interruptsdict[str, list[Interrupt]]
    extractedNotRequired[dict[str, Any]]
    attribute
    thread_id: str

    The ID of the thread.

    attribute
    created_at: datetime

    The time the thread was created.

    attribute
    updated_at: datetime

    The last time the thread was updated.

    attribute
    metadata: Json

    The thread metadata.

    attribute
    status: ThreadStatus

    The status of the thread, one of 'idle', 'busy', 'interrupted'.

    attribute
    values: Json

    The current state of the thread.

    attribute
    interrupts: dict[str, list[Interrupt]]

    Mapping of task ids to interrupts that were raised in that task.

    attribute
    extracted: NotRequired[dict[str, Any]]

    Extracted values from thread data. Only present when extract is used in search.