LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • 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

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-sdkschemaCommand
    Class●Since v0.1

    Command

    Copy
    Command()

    Bases

    TypedDict

    Used in Docs

    • Build a custom SQL agent
    • Build a personal assistant with subagents
    • Build a SQL agent
    • Build a SQL assistant with on-demand skills
    • Build customer support with handoffs
    (4 more not shown)

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    gotoSend | str | Sequence[Send | str]
    updatedict[str, Any] | Sequence[tuple[str, Any]]
    resumeAny
    attribute
    goto: Send | str | Sequence[Send | str]

    Specifies where execution should continue. Can be:

    • A string node name to navigate to
    • A Send object to execute a node with specific input
    • A sequence of node names or Send objects to execute in order
    attribute
    update: dict[str, Any] | Sequence[tuple[str, Any]]

    Updates to apply to the graph's state. Can be:

    • A dictionary of state updates to merge
    • A sequence of (key, value) tuples for ordered updates
    attribute
    resume: Any

    Value to resume execution with after an interruption. Used in conjunction with interrupt() to implement control flow.

    Represents one or more commands to control graph execution flow and state.

    This type defines the control commands that can be returned by nodes to influence graph execution. It lets you navigate to other nodes, update graph state, and resume from interruptions.