Loading video player...
Description In this AIMUG Thunderstorm Talk, Colin McNamara explores the brand-new LangChain Middleware 1.0 Alpha — one of the most significant updates to the LangChain ecosystem yet. Learn how middleware unlocks: Human-in-the-loop control for agents Dynamic model routing based on complexity and cost Context management and safety guardrails Caching inside the agent layer for performance and cost efficiency Observability hooks into OpenTelemetry and LangSmith Colin demonstrates how LangChain’s new three middleware hooks (before_model, model, and after_model) allow developers to modify, inspect, and secure LLM calls at runtime — paving the way for reliable, production-ready agent systems. 🧩 Key Takeaways Implement middleware patterns directly in LangChain & LangGraph Add real-time inspection, caching, and anomaly detection to agents Simplify state management and graph-based orchestration Enable human approval checkpoints and failure handling Understand where the middleware layer fits into modern AI stacks 🧱 Related Resources 📘 Blog post: colinmcnamara.com 💻 Repo & Docs: aimug.org/learn 💬 Join our community: aimug.org/discord 📅 Next meetup: aimug.org/events