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
    PythonlanggraphtypesStateSnapshot
    Classā—Since v0.2

    StateSnapshot

    Snapshot of the state of the graph at the beginning of a step.

    Copy
    StateSnapshot()

    Bases

    NamedTuple

    Attributes

    View source on GitHub
    attribute
    values: dict[str, Any] | Any
    attribute
    next: tuple[str, ...]
    attribute
    config: RunnableConfig
    attribute
    metadata: CheckpointMetadata | None
    attribute
    created_at: str | None
    attribute
    parent_config: RunnableConfig | None
    attribute
    tasks: tuple[PregelTask, ...]
    attribute
    interrupts: tuple[Interrupt, ...]

    Current values of channels.

    The name of the node to execute in each task for this step.

    Config used to fetch this snapshot.

    Metadata associated with this snapshot.

    Timestamp of snapshot creation.

    Config used to fetch the parent snapshot, if any.

    Tasks to execute in this step. If already attempted, may contain an error.

    Interrupts that occurred in this step that are pending resolution.