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

    ThreadState

    Represents the state of a thread.

    Copy
    ThreadState()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    valueslist[dict] | dict[str, Any]
    nextSequence[str]
    checkpointCheckpoint
    metadataJson
    created_atstr | None
    parent_checkpointCheckpoint | None
    tasksSequence[ThreadTask]
    interruptslist[Interrupt]
    attribute
    values: list[dict] | dict[str, Any]

    The state values.

    attribute
    next: Sequence[str]

    The next nodes to execute. If empty, the thread is done until new input is received.

    attribute
    checkpoint: Checkpoint

    The ID of the checkpoint.

    attribute
    metadata: Json

    Metadata for this state

    attribute
    created_at: str | None

    Timestamp of state creation

    attribute
    parent_checkpoint: Checkpoint | None

    The ID of the parent checkpoint. If missing, this is the root checkpoint.

    attribute
    tasks: Sequence[ThreadTask]

    Tasks to execute in this step. If already attempted, may contain an error.

    attribute
    interrupts: list[Interrupt]

    Interrupts which were thrown in this thread.