LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • 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

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpointbasewrites_sort_key
    Function●Since v4.3

    writes_sort_key

    Copy
    writes_sort_key(
      task_path: str,
      task_id: str = '',
      idx: int = 0
    View source on GitHub
    )
    ->
    tuple
    [
    str
    ,
    str
    ,
    int
    ]

    Sort key for the writes of one super-step.

    Live execution applies a super-step's tasks in this order, so a saver that replays stored writes, as get_delta_channel_history does, must sort them by it too, or an order-sensitive reducer rebuilds a different value than the run produced. task_path is the string passed to put_writes.