Installation
Setup
We recommend using UUIDs for session_id and user_id so traces can be grouped reliably across runs.
Usage
What gets traced
I/O propagation
The adapter automatically propagates input/output from LLM spans to their parent agent and the root trace:
- First LLM input becomes the agent span’s input
- Last LLM output becomes the agent span’s output
- Last user message becomes the trace input; last assistant message becomes the trace output
Token usage mapping
This produces a trace with: CHAIN (root) → AGENT (City Info Agent) → LLM (model call) → TOOL (get_weather) → TOOL (get_population) → LLM (final response).