Skip to content
masterclass Buddy

LangGraph · Function

get_state

Reads the state of a thread from a remote LangGraph. It can read the current state or a specified checkpoint, and can optionally include subgraph state.

Last updated

Since
v1.2

Syntax

get_state(self, config: RunnableConfig, *, subgraphs: bool = False, headers: dict[str, str] | None = None, params: QueryParamTypes | None = None) -> StateSnapshot

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • StateSnapshot
  • RunnableConfig
  • RemoteGraph

Source: get_state | langgraph | LangChain Reference. Checked 2026-11-03.