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
    Pythonlanggraphpregeldebugtasks_w_writes
    Functionā—Since v0.2

    tasks_w_writes

    Copy
    tasks_w_writes(
      tasks: Iterable[PregelTask | PregelExecutableTask],
      pending_writes: list[PendingWrite
    View source on GitHub
    ]
    |
    None
    ,
    states
    :
    dict
    [
    str
    ,
    RunnableConfig
    |
    StateSnapshot
    ]
    |
    None
    ,
    output_keys
    :
    str
    |
    Sequence
    [
    str
    ]
    )
    ->
    tuple
    [
    PregelTask
    ,
    .
    .
    .
    ]

    Apply writes / subgraph states to tasks to be returned in a StateSnapshot.