trulens.apps.langgraph.trace_provider¶
trulens.apps.langgraph.trace_provider
¶
LangGraph-specific trace provider for plan extraction and parsing.
This module contains all LangGraph-specific logic for parsing traces, extracting plans from Command structures, and understanding LangGraph state.
Classes¶
LangGraphTraceProvider
¶
Bases: TraceProvider
LangGraph-specific trace provider that understands Command structures and graph state.
Functions¶
can_handle
¶
Check if this is a LangGraph trace by looking for LangGraph-specific indicators. Checks ALL spans for indicators, not just the first few.
extract_plan
¶
Extract plan from LangGraph trace, handling Command structures and graph state.
extract_execution_flow
¶
Extract detailed execution flow with reasoning chain from LangGraph trace.
extract_agent_interactions
¶
Extract detailed agent interactions with reasoning and data flow.
compress_trace
¶
Compress trace with enhanced detail preservation for logical consistency.