LangGraph Workbench: an Incident-Troubleshooting Agent

A track of P11 · Agentic AI & AI Systems.

Build, lab by lab in real LangGraph, a read-only agent that triages an incident for an SRE of a big-data platform or a database administrator, ready to point at your own logs, metrics and alerts.

It is 03:10 and two alerts fire at once: Hive queries on the big-data cluster take 41 seconds instead of 3, and the PostgreSQL database behind the Hive metastore has 497 of its 500 connections in use. The SRE on call looks at Hive, the database administrator looks at PostgreSQL, and both scroll through logs, dashboards and alert lists that do not fit on one screen. Which of the two is the cause, and which is the symptom? This track builds an agent that answers that question by reading, never by changing anything, before a human acts.

You build it in LangGraph, the open-source framework that runs an agent as a graph of steps around a shared state. Each lesson adds one principle and ends with a lab that runs the real library in the practice sandbox: a graph with a branch, read-only tools behind a guard, a cache and a rate limit, the agent loop with a middleware that trims long outputs, a fan-out to HDFS, YARN, Hive/Impala and PostgreSQL specialists, an approval pause before any write, replayed incidents that check what the agent did, and finally the langgraph.json that a server deploys.

No lab calls a real model. A scripted model replays fixed answers, so every run is free, repeatable and graded on the wiring you wrote. The ideas themselves (context hygiene, routing by rules, durable pauses, trajectory checks) are taught in Applied LLM Systems 06 to 09; this track is where you write them in the framework. In lesson 07, you swap the scripted model for a real one: one line of code, the provider's package and its API key.

Questionan SRE or a DBA asksAgenta LangGraph graphToolslogs, metrics, alertsGuardcache and rate limitPlatformS3, metrics, Grafana
The agent you build: read-only tools between the model and the observability platform.
LessonPrincipleLangGraph APIThe trap
01A graph with a branchStateGraph, add_conditional_edgesa node that replaces a list instead of appending
02Read-only tools@toola tool that reads a whole week of logs
03The agent loopcreate_agent, wrap_tool_calla result that loses its tool_call_id
04Fan-outSend, a reducersending the whole state to every specialist
05Approval and memoryinterrupt, Command(resume=…)a side effect before interrupt()
06Replay and check.tool_calls on each AI messagegrading the final answer only
07Ship itlanggraph.json, langgraph deva token that can write
LangGraph Workbench: an Incident-Troubleshooting Agent — TransformerLab