# langchain_google_genai

> Python package

📖 [View in docs](https://reference.langchain.com/python/langchain-google-genai)

## Classes

- [`GoogleGenerativeAI`](https://reference.langchain.com/python/langchain-google-genai/llms/GoogleGenerativeAI)
- [`Route`](https://reference.langchain.com/python/langchain-google-genai/_image_utils/Route)
- [`ImageBytesLoader`](https://reference.langchain.com/python/langchain-google-genai/_image_utils/ImageBytesLoader)
- [`GoogleContextOverflowError`](https://reference.langchain.com/python/langchain-google-genai/chat_models/GoogleContextOverflowError)
- [`ChatGoogleGenerativeAIError`](https://reference.langchain.com/python/langchain-google-genai/chat_models/ChatGoogleGenerativeAIError)
- [`ChatGoogleGenerativeAI`](https://reference.langchain.com/python/langchain-google-genai/chat_models/ChatGoogleGenerativeAI)
- [`GoogleGenerativeAIEmbeddings`](https://reference.langchain.com/python/langchain-google-genai/embeddings/GoogleGenerativeAIEmbeddings)
- [`GoogleGenerativeAIError`](https://reference.langchain.com/python/langchain-google-genai/_common/GoogleGenerativeAIError)

## Functions

- [`create_context_cache()`](https://reference.langchain.com/python/langchain-google-genai/utils/create_context_cache)
- [`image_bytes_to_b64_string()`](https://reference.langchain.com/python/langchain-google-genai/_image_utils/image_bytes_to_b64_string)
- [`convert_to_genai_function_declarations()`](https://reference.langchain.com/python/langchain-google-genai/_function_utils/convert_to_genai_function_declarations)
- [`tool_to_dict()`](https://reference.langchain.com/python/langchain-google-genai/_function_utils/tool_to_dict)
- [`is_basemodel_subclass_safe()`](https://reference.langchain.com/python/langchain-google-genai/_function_utils/is_basemodel_subclass_safe)
- [`safe_import()`](https://reference.langchain.com/python/langchain-google-genai/_function_utils/safe_import)
- [`get_user_agent()`](https://reference.langchain.com/python/langchain-google-genai/_common/get_user_agent)
- [`translate_citations_to_grounding_metadata()`](https://reference.langchain.com/python/langchain-google-genai/_compat/translate_citations_to_grounding_metadata)
