LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    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

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    PythonlanggraphtypesCheckpointTask
    Class●Since v1.1

    CheckpointTask

    A task entry within a CheckpointPayload.

    The keys present depend on the task's state:

    • Error: id, name, error, state
    • Has result: id, name, result, interrupts, state
    • Pending: id, name, interrupts, state
    Copy
    CheckpointTask()

    Bases

    TypedDict

    Constructors

    constructor
    __init__
    NameType
    idstr
    namestr
    errorNotRequired[str]
    resultNotRequired[Any]
    interruptsNotRequired[list[dict]]
    stateStateSnapshot | RunnableConfig | None

    Attributes

    attribute
    id: str

    Unique identifier for this task.

    attribute
    name: str

    Name of the node being executed.

    attribute
    error: NotRequired[str]

    Error message, present only if the task failed.

    attribute
    result: NotRequired[Any]

    Result of the task, present only if the task completed successfully.

    attribute
    interrupts: NotRequired[list[dict]]

    List of interrupts, present when the task has been interrupted or completed.

    attribute
    state: StateSnapshot | RunnableConfig | None

    Snapshot of the subgraph state, or a RunnableConfig pointing to it. None if not a subgraph.

    View source on GitHub