What's the difference between a LangGraph agent and a node?

A node is one step of a LangGraph graph, and an agent is the behavior of the whole graph when the model chooses what runs next. LangChain’s docs define a node as a sync or async function that implements a step and receives the graph’s state. A node can call a model, call a tool, or do plain computation. It doesn’t have to be an agent.

An agent is defined by who picks the path. The docs say workflows have predetermined code paths and agents define their own processes and tool use. A graph with fixed edges is a workflow even when every node calls a model.

The two meet in subgraphs, a graph used as a node in another graph. The docs list multi-agent systems as a use: each agent can be a subgraph, and from the parent graph it is a single node.

So a node’s output can be checked on its own, while an agent’s decisions have to be checked across its steps, the way a mis-routed handoff is.

published

sources

keep reading

More on this.

Try Tessary on Cloud.

free · 10,000 traces a month · 1 GB · 30-day retention · $10 one-time credit for triage and RCA · no credit card