LangSmith · Function
wrap_gemini
wrap_gemini patches a Google Gen AI client so supported Gemini calls are traced in LangSmith. It keeps the client's normal interface and supports streaming, async calls, multimodal input, tools, and token tracking.
Last updated
- Since
- v0.5
Syntax
wrap_gemini(client: C, *, tracing_extra: Optional[TracingExtra] = None, chat_name: str = 'ChatGoogleGenerativeAI') -> CIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
generate_contentgenerate_content_streamtracing_extrawrap_gemini_live