Installation
Usage
How It Works
wrap_gemini wraps the Google Gen AI client’s generate_content method. After each call, it:
- Extracts the model name from the response
usage_metadata - Extracts input and output token counts from
usage_metadata - Sends the usage event to MeshAI (buffered, non-blocking)
google-genai SDK and the legacy google-generativeai SDK.

