Utility functions for LangChain Google GenAI.
Convert tools to google-genai Tool objects.
Each special tool type (google_search, google_maps, url_context, etc.) must
be in its own Tool object due to protobuf oneof constraints.
Creates a context cache for the specified model and content.
Context caching allows you to store and reuse content (e.g., PDFs, images) for faster processing. This is useful when you have large amounts of context that you want to reuse across multiple requests.
When using cached content, you cannot specify system_instruction,
tools, or tool_config in subsequent API requests. These must be part
of the cached content. Do not call .bind_tools() when using a model with
cached content that already includes tools.
Google GenAI chat model integration.