Debugging: LangSmith and Studio
Trace every run in LangSmith and step through graphs in LangGraph Studio.
How to see inside an agent. The module starts with tracing: what a trace of the tool-calling agent records, how a few environment variables send every run to LangSmith, how to name, tag and group runs, find the step that failed, keep private data out of traces, and turn the same records into evaluations. Then LangGraph Studio: two files and langgraph dev serve the agent on your machine, and the browser draws it, runs it, pauses it before a tool, lets you edit the tool call and fork the run, ending with the agent in one file with Gemini. Try each practice task before you open its solution.
Lessons
- 1Tracing with LangSmithWhy agents need traces, runs, traces, projects and threads, the trace of a tool-calling agent step by step, how tracing works inside, turning it on with environment variables (new and older names), naming, tagging and grouping runs, tracing your own functions, finding common failures in a trace, privacy, volume and cost, evaluations with datasets, evaluators and experiments, interview questions and two practice tasks.
- 2LangGraph StudioWhat Studio is and what runs where, the tool-calling agent file with a choice of providers, langgraph.json, the keys, installing the CLI, langgraph dev and what the local server does, making Studio draw every edge, running the agent, breakpoints, editing state and forking, threads, assistants and the Playground, common problems, the agent in one file with Gemini, interview questions and two practice tasks.