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 Checkpoint
    LangGraph Store
    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

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_task_statusTaskStatus
    Classā—Since v1.2

    TaskStatus

    Copy
    TaskStatus(
      self,
      output: tuple[tuple[str, Any], ...] = 

    Constructors

    Attributes

    View source on GitHub
    (
    )
    ,
    interrupts
    :
    tuple
    [
    Interrupt
    ,
    .
    .
    .
    ]
    =
    (
    )
    ,
    error
    :
    BaseException
    |
    None
    =
    None
    )
    constructor
    __init__
    NameType
    outputtuple[tuple[str, Any], ...]
    interruptstuple[Interrupt, ...]
    errorBaseException | None
    attribute
    output: tuple[tuple[str, Any], ...]

    Output writes in recorded order. Empty if the task has not finished.

    attribute
    interrupts: tuple[Interrupt, ...]

    The most recent interrupts the task raised, whether or not they were answered.

    attribute
    error: BaseException | None

    The recorded error, if any.

    attribute
    finished: bool

    Whether the task ran to completion.

    attribute
    pending_interrupts: tuple[Interrupt, ...]

    Interrupts waiting for an answer. Always empty for a finished task.

    The status of one task, read from the writes recorded for its superstep.