Skip to content
masterclass Buddy

LangGraph · Class

InjectedState

InjectedState marks a tool argument for automatic graph-state injection. ToolNode hides this argument from the model and supplies the full state or one selected field during execution.

Last updated

Since
v0.1

Syntax

InjectedState(self, field: str | None = None)

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

Subscribe
  • InjectedToolArg
  • ToolNode
  • ToolRuntime
  • InjectedStore

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