Skip to main content
When you trace a LangGraph graph execution, Laminar automatically captures the graph structure and workflow, allowing you to visualize the entire graph flow directly in the trace view.

Prerequisites

You’ll need to install LangChain to work with LangGraph:

Overview

LangGraph creates complex, stateful, multi-actor applications with Large Language Models. When these graphs are traced with Laminar, you can see complete graph structure and node relationships.

Example: Multi-Step Research Workflow

Here’s how to set up a LangGraph workflow with Laminar tracing:

1. Initialize Laminar

2. Define Your Graph State

3. Create Traced Graph Nodes

4. Build the Graph Workflow

Example trace with LangGraph visualization and arrow indicating the location of the button to enable trace visualization