Log Agent Graphs
Agent Graphs are a great way to visualize the flow of an agent and simplifies it’s debugging.

Opik supports logging agent graphs for the following frameworks:
- LangGraph
- Manual Tracking
LangGraph
You can log the agent execution graph by specifying the graph
parameter in the
OpikTracer callback:
Opik will log the agent graph definition in the Opik dashboard which you can access by clicking on
Show Agent Graph
in the trace sidebar.
Manual Tracking
You can also log the agent graph definition manually by logging the agent graph definition as a mermaid graph definition in the metadata of the trace:
Opik will log the agent graph definition in the Opik dashboard which you can access by clicking on
Show Agent Graph
in the trace sidebar.
Next steps
Why not check out: