An agent in LangGraph is a graph: boxes that do one job each, arrows that say what runs next,
and one shared record that every box reads and updates. Before any model or tool appears, you
draw the triage flow of an incident as such a graph and run it.
Step 1 / 3 — The principle: state, nodes, edges
The state is a typed dictionary: the alert, what was found, the report. Every step reads it.
A node is a plain Python function. It receives the state and returns only the keys it changes.
An edge says which node runs next. A conditional edge calls a small function on the state and follows the branch it names. This is how an alert goes to the database checks or to the big-data checks.
The plan, act, observe loop of Applied LLM Systems 01 is one such graph. Here you draw it yourself.
The figure is the graph you wire in the lab. The code in the next step is a smaller one, on another alert.
Plain boxes are nodes; the box with the coloured border is the conditional edge. Only the branch it picks runs.
🎯 State in, changed keys out, edges decide what runs next.
Ask the mentor about this module
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Images, PDF or text. Kept on this device only.
Keeping your files on this device
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Ctrl/Cmd + Enter to send
🎓 Practice ladder
1 graded rung · ~15 min
Wire the triage graph yourself. The four nodes are written; you add them to the graph, draw
the edges and the one conditional edge. Run checks the visible tests; Submit also
checks that only the branch taken reads the metrics, and that two runs do not share evidence.
The lab runs the real LangGraph in the practice sandbox.
Lab — Wire the first triage graph
Loading exercise…
My notes on this module
Loading your notes...
The first graph: state, nodes, edges and a branch — TransformerLab