Prefer zero setup? Use
plog run or import provenlog.auto instead. See Auto-Instrumentation.Setup
What gets captured
| Event | Action Type | Details |
|---|---|---|
| Chat completions | LLM_CALL / LLM_RESPONSE | Model, messages, token counts |
| Function calls | TOOL_CALL / TOOL_RESULT | Function name, arguments, output |
| Agent registration | CUSTOM | Agent name, configuration |
| Cost tracking | CUSTOM | Per-call and cumulative costs |
| Cache status | CUSTOM | Cache hits and misses |
How it works
The Trail hooks into AG2’s runtime logging system viaautogen.runtime_logging.start. It receives structured events for all agent activity across the AG2 framework.