Video
LangGraph State and Reducers | Why Your Agent Logs Go Missing
About this video
Join the FREE Manifold AI Learning Community for more free resources on Agentic AI Production Patterns.
manifoldailearning.com/community
Companion code and sample data
drive.google.com/file/d/1-WtrMJfN4Qg1BTQCrGZ4WMYz2Hz0U5Ds/view
Your support agent routed a ticket, but the final log can lose the classification that explains why. Follow the same LangGraph workflow with an urgent ticket and a normal ticket. See how a reducer keeps both log entries while priority keeps its current value. The companion code runs both versions locally using two sample tickets.
Pick a field in your graph and decide whether it should retain the latest value or keep a history. Print the final state and verify the behavior.
00:00 Introduction
01:32 Define the support ticket state
02:28 Attach operator.add to the log field
03:12 Compare replace and append
04:05 Write a log entry from each node
04:56 Route the ticket by priority
06:49 Run the urgent ticket
07:30 Run the normal ticket
07:41 Try it on your own agent
Nachiketh Murthy | Manifold AI Learning
What this video covers
- LangGraph & MCP — Practical LangGraph and Model Context Protocol (MCP) walkthroughs: wiring tools into agents, state and memory in LangGraph, and what changes when you take them to production. All LangGraph & MCP videos →
- GenAI & LLMs — Generative AI and large language model fundamentals — transformers, embeddings, prompting, fine-tuning and how LLM APIs behave as distributed systems. All GenAI & LLMs videos →
Go deeper on LangGraph & MCP