agrag.agents.tracing.run_callbacks
run_callbacks(tracer:Tracer | None) -> list[Any]
Return the callbacks for one agent run.
The callback holds per-run state, so build a new one for every run. Spans carry the question, tool inputs, and evidence text.
Parameters:
- tracer (
Tracer | None) – The tracer that receives the spans, orNoneto disable tracing.
Returns:
list[Any]– A one-item callback list, or an empty list whentracerisNone.