Agentic AI (LangChain and LangGraph) · LangChain Agents in Depth · Advanced · 30 min read
LangChain Agent Middleware Fundamentals: Hooks, Wrap Calls, Custom State and Execution Order
Add behaviour around every step of an agent without rewriting it. Learn the agent loop, the six middleware hooks (before_agent, before_model, wrap_model_call, wrap_tool_call, after_model, after_agent), decorator versus class style, extending state, jump_to for early exits, request.override, execution order, and build limits, retries, dynamic model choice and logging.
Create an account to start
Create a free account to see what this lesson covers
- Every free lesson in every section, in full
- Track your progress and pick up where you left off
- Free practice questions and an incident simulation
- Takes under a minute: name, email and a password
No card needed. Full access to Agentic AI (LangChain and LangGraph) is a paid upgrade you can choose later.