Session 8· Reference

Troubleshooting Guide

What you'll learn
  • Fix agent creation, middleware, memory, streaming, and multi-agent bugs

Session 8 agents have more moving parts than Session 6 models. Every error below is one students actually hit.

Agent creation errors

Middleware errors

Memory / checkpointer errors

Streaming errors

Multi-agent errors

HITL errors

When nothing above helps

  1. Print the full result: print(result) — agent states have readable reprs.
  2. Walk the messages list to find where things went wrong.
  3. Set langchain.debug = True for verbose API call logging.
  4. Compare against the solution script using the toggle on the exercise page.