Skip to content
masterclass Buddy

LangGraph · Class

Command

Command lets a LangGraph.js node update graph state and choose the next node in one return value. It also supports resuming interrupted work and sending commands to another graph.

Last updated

Syntax

new Command<Resume, Update, Nodes>(args: Omit<CommandParams<Resume, Update, Nodes>, "lg_name">)

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

Subscribe
  • Command.PARENT
  • Send
  • interrupt
  • StateGraph
  • Annotation

Source: Command | LangGraph.js API Reference. Checked 2026-11-03.