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
    PythonlanggraphtypesStateSnapshot
    Class●Since v0.2

    StateSnapshot

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

    Copy
    StateSnapshot()

    Bases

    NamedTuple

    Attributes

    attribute
    values: dict[str, Any] | Any

    Current values of channels.

    attribute
    next: tuple[str, ...]

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

    attribute
    config: RunnableConfig

    Config used to fetch this snapshot.

    attribute
    metadata: CheckpointMetadata | None

    Metadata associated with this snapshot.

    attribute
    created_at: str | None

    Timestamp of snapshot creation.

    attribute
    parent_config: RunnableConfig | None

    Config used to fetch the parent snapshot, if any.

    attribute
    tasks: tuple[PregelTask, ...]

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

    attribute
    interrupts: tuple[Interrupt, ...]

    Interrupts that occurred in this step that are pending resolution.

    View source on GitHub