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
    PythonlanggraphtypesTaskResultPayload
    Class●Since v1.1

    TaskResultPayload

    Payload for a task result event.

    Copy
    TaskResultPayload()

    Bases

    TypedDict

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    idstr
    namestr
    errorstr | None
    interruptslist[dict]
    resultdict[str, Any]
    attribute
    id: str

    Unique identifier for this task.

    attribute
    name: str

    Name of the node that was executed.

    attribute
    error: str | None

    Error message if the task failed, otherwise None.

    attribute
    interrupts: list[dict]

    List of interrupts that occurred during task execution.

    attribute
    result: dict[str, Any]

    Mapping of channel names to the values written by this task.