google-genai SDK.
Setup
Usage
Once initialized, all Gemini calls are captured automatically — including tool calls:What Gets Captured
Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example
Auto-instrument Google Gemini API calls via the GenAI SDK
google-genai SDK.