Skip to content

v0.1.28 - Gemini SDK integration

Latest

Choose a tag to compare

@AdityaSaroj AdityaSaroj released this 18 Aug 19:32
· 1 commit to main since this release
ce9ebea
  • New Instrumentation Module (instrumentation/gemini.py): Added a patching mechanism for both synchronous and asynchronous Interactions.create methods.
  • Support for Multiple SDK Layouts: The patch intelligently checks for both standard Interactions (SDK <2.x) and GeminiNextGenInteractions (SDK >=2.x) to ensure broader compatibility.
  • Automatically records span attributes such as llm.vendor, llm.model, llm.interaction_id, and llm.response.status.
  • Reads provider total_tokens/total_cached_tokens/total_tool_use_tokens directly instead of synthesizing input+output
  • Records cost and duration metrics.