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

    Chat LangChain

    What can I help with?

    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_checkpointcreate_checkpoint_plan_for_update_state_api
    Functionโ—Since v1.2

    create_checkpoint_plan_for_update_state_api

    Copy
    create_checkpoint_plan_for_update_state_api(
      channels: Mapping[str, BaseChannel],
      updated_channels: set[str
    View source on GitHub
    ]
    ,
    *
    ,
    source
    :
    Literal
    [
    'update'
    ,
    'input'
    ]
    ,
    step
    :
    int
    ,
    parents
    :
    dict
    [
    str
    ,
    Any
    ]
    ,
    saved_metadata
    :
    Mapping
    [
    str
    ,
    Any
    ]
    |
    None
    ,
    is_fresh_thread
    :
    bool
    ,
    fork_channels
    :
    set
    [
    str
    ]
    ,
    channel_versions
    :
    ChannelVersions
    )
    ->
    tuple
    [
    set
    [
    str
    ]
    ,
    dict
    [
    str
    ,
    Any
    ]
    ]

    Return (channels_to_snapshot, metadata) for an update_state head.