google-gemini / genai-processors

Add tracing capabilities to GenAI Processors.
This change introduces a new directory containing tools for development, starting with a tracing system. The module defines and classes to capture the execution flow of a processor, including input and output parts, as well as nested processor calls. The class is modified to include a flag. When enabled, the method will record all input and output parts, and any sub-processor calls, into a object managed via . Traces can be saved and loaded from JSON files. The save_html method exports the trace into a static html file that provide a UI for investigating the trace. PiperOrigin-RevId: 859151772
GDM AI Platform FTEs GDM AI Platform FTEs committed on Jan 21, 2026, 06:06 PM
Showing 9 changed files +1350 additions -30 deletions
Browse files at this commit โ†’