Load documents from Google Cloud BigQuery.
Inherits from BaseLoader.
Each row becomes a document. Columns can be mapped to page_content or
metadata. By default, all columns map to page_content.
Requires additional dependencies:
pip install langchain-google-community[bigquery]Tool that creates an event in Google Calendar.
Tool that delete an event in Google Calendar.
Tool that move an event between calendars in Google Calendar.
Tool that retrieves events from Google Calendar.
Toolkit for interacting with Google Calendar.
Provides tools for calendar operations including creating, searching, updating, moving, and deleting events.
This toolkit contains tools that can read and modify the state of a service. For example, it can create, update, and delete calendar events on behalf of the associated account.
See Security Policy for more information.
Tool that updates an event in Google Calendar.
Tool that get information about the calendars in Google Calendar.
Tool that gets the current datetime according to the calendar timezone.
Callback handler for logging LangChain events to Google BigQuery.
Callback handler for logging LangChain events to Google BigQuery.
Google Cloud Document AI parser.
Inherits from BaseBlobParser.
Parses documents using Google Cloud Document AI for text extraction and layout analysis.
See Document AI documentation for detailed information.
Requires additional dependencies:
pip install langchain-google-community[docai]A dataclass to store Document AI parsing results.
Retriever for Google Cloud Document AI Warehouse.
Inherits from BaseRetriever.
Searches documents using Document AI Warehouse schema. Documents must be created and uploaded separately before retrieval.
See Document AI Warehouse documentation for more information.
Requires additional dependencies:
pip install langchain-google-community[docai]Load documents from Google Drive.
Inherits from BaseLoader.
Supports loading from folders, specific documents, or file IDs with authentication.
Requires additional dependencies:
pip install langchain-google-community[drive]Load documents from Google Cloud Storage directory.
Inherits from BaseLoader.
Loads all files from a GCS bucket with optional prefix filtering.
Requires additional dependencies:
pip install langchain-google-community[gcs]
If loader_func is not provided, GCSFileLoader uses
UnstructuredFileLoader, which additionally requires
langchain-community.
Load documents from Google Cloud Storage file.
Inherits from BaseLoader.
Downloads and loads a single file from GCS bucket using configurable loader.
Requires additional dependencies:
pip install langchain-google-community[gcs]
The default UnstructuredFileLoader additionally requires
langchain-community. To avoid that dependency, provide a custom
loader_func.
Wrapper for Google Maps Geocoding API.
Provides methods for geocoding locations with configurable options for address components, geometry, metadata, and navigation points.
Tool for geocoding locations using Google Maps Geocoding API.
Inherits from BaseTool.
Supports batch location lookups with detailed address and coordinate information.
Load chat sessions from Gmail.
Inherits from
BaseChatLoader.
Loads sent messages and their preceding emails to create chat training examples.
This loader finds messages you've sent in reply to previous emails and creates chat sessions from the original email and your response. Each session contains only the immediate previous email for context.
Requires Google Developer Account with Gmail API enabled. See Gmail API documentation for setup instructions.
Toolkit for interacting with Gmail.
Provides tools for Gmail operations including creating drafts, sending messages, searching emails, and retrieving messages and threads.
This toolkit contains tools that can read and modify the state of a service. For example, it can send emails and read messages on behalf of the associated account.
See Security Best Practices for more information.
Loader for Google Cloud Speech-to-Text audio transcripts.
Inherits from BaseLoader.
Transcribes audio files using Google Cloud Speech-to-Text API and loads transcribed text into documents. Supports both GCS URIs and local file paths.
See Speech-to-Text documentation for detailed information.
Requires additional dependencies:
pip install langchain-google-community[speech]Runnable to sanitize user prompts using Model Armor.
Runnable to sanitize LLM responses using Model Armor.
Wrapper around Google Places API.
Searches for places using Google Maps Platform. Returns detailed information including addresses, phone numbers, and websites.
Requires additional dependencies:
pip install langchain-google-community[places]Set GPLACES_API_KEY environment variable or pass gplaces_api_key
parameter with your Google Maps Platform API key.
Tool that queries the Google Places API.
Inherits from BaseTool.
Validates and discovers addresses from ambiguous text using Google Maps Platform.
Wrapper for Google Custom Search API.
Performs web searches using Google Custom Search API and returns results with snippets, titles, and links.
GOOGLE_API_KEY and GOOGLE_CSE_ID environment variablesTool that queries the Google Custom Search API and returns JSON.
Inherits from BaseTool.
Returns structured search results with metadata.
Tool that queries the Google Custom Search API.
Inherits from BaseTool.
Returns concatenated snippets from search results.
Tool for appending values to a Google Spreadsheet table.
Inherits from
SheetsBaseTool.
Appends data to the end of a table, automatically finding the last row with data.
Requires OAuth2 authentication. Use api_resource parameter with
authenticated Google Sheets service.
Tool for reading data from multiple ranges in Google Sheets efficiently.
Inherits from
BaseReadTool.
Reads multiple ranges in a single API call, reducing network overhead and improving performance.
Tool for batch updating multiple ranges in Google Sheets efficiently.
Inherits from
SheetsBaseTool.
Updates multiple ranges in a single API call, dramatically improving efficiency.
Tool for clearing values from a Google Spreadsheet range.
Inherits from
SheetsBaseTool.
Clears cell values from a specified range while preserving formatting and structure.
Requires OAuth2 authentication. Use api_resource parameter with
authenticated Google Sheets service.
Only values are cleared. Formatting, borders, colors, fonts, and data validation rules remain intact.
Tool for creating new Google Spreadsheets.
Inherits from
SheetsBaseTool.
Creates spreadsheets with configurable properties and optional initial data.
Requires OAuth2 authentication. Use api_resource parameter with
authenticated Google Sheets service.
Tool for reading data from Google Sheets using DataFilters.
Uses getByDataFilter API to read ranges specified by A1 notation, grid
coordinates, or developer metadata. Optionally includes detailed cell formatting.
Requires OAuth2 authentication (not API key).
This tool is for RANGE SELECTION, not conditional filtering like
'score > 50'. For conditional filtering, create a Filter View using
Sheets UI or batchUpdate API.
Tool for retrieving Google Sheets metadata and structure information.
Inherits from
SheetsBaseTool.
Retrieves spreadsheet properties, sheet details, named ranges, and organizational structure. Essential for understanding spreadsheet contents before reading data.
Tool for reading data from a single range in Google Sheets.
Inherits from
BaseReadTool.
Reads data from a single range with support for various rendering options and data transformations.
Toolkit for interacting with Google Sheets.
Inherits from BaseToolkit.
Provides comprehensive Google Sheets integration with read and write capabilities.
This toolkit contains tools that can read and write data to Google Sheets. Ensure proper authentication and access controls.
api_resource)Tool for updating values in a single range of Google Sheets.
Inherits from
SheetsBaseTool.
Updates cell values in a specified range, overwriting existing data.
Requires OAuth2 authentication. Use api_resource parameter with
authenticated Google Sheets service.
Tool that creates a task in Google Tasks.
Tool that deletes a task from Google Tasks.
Tool that retrieves a specific task from Google Tasks.
Tool that lists tasks from Google Tasks.
Toolkit for interacting with Google Tasks.
This toolkit provides tools for creating, listing, updating, deleting, and retrieving tasks from Google Tasks.
Tool that updates a task in Google Tasks.
Tool that queries the Google Cloud Text-to-Speech API.
Inherits from BaseTool.
Synthesizes audio from text with support for multiple languages and voice options.
Requires additional dependencies:
pip install langchain-google-community[texttospeech]Follow setup instructions to configure Google Cloud Text-to-Speech API.
Translate text documents using Google Cloud Translation.
Inherits from
BaseDocumentTransformer.
Transforms documents by translating their content using Google Cloud Translation API with support for custom models and glossaries.
Requires additional dependencies:
pip install langchain-google-community[translate]See Translation API documentation for detailed information.
Google Vertex AI Search retriever for multi-turn conversations.
Supports both stable (v1) and beta versions of the Discovery Engine API.
Google Vertex AI Search retriever.
This retriever supports both stable (v1) and beta versions of the Discovery Engine.
Beta features are only available when beta=True.
For a detailed explanation of Vertex AI Search concepts and configuration parameters see the Vertex AI Search documentation.
Class that exposes a tool to interface with an App in Vertex Search and
Conversation and get the summary of the documents retrieved.
Supports both stable (v1) and beta versions of the Discovery Engine API.
Initializes the Vertex AI CheckGroundingOutputParser with configurable parameters.
Calls the Check Grounding API to validate the response against a given set of documents and returns back citations that support the claims along with the cited chunks. Output is of the type CheckGroundingResponse.
Document compressor using Vertex AI Ranking API.
Inherits from
BaseDocumentCompressor.
Reranks documents based on relevance to a query using Google's semantic ranking model.
Wrapper and Tool for the Google Maps Geocoding API.
Module contains a PDF parser based on Document AI from Google Cloud.
You need to install two libraries to use this parser: pip install google-cloud-documentai pip install google-cloud-documentai-toolbox
Util that calls Google Search.
Chain that calls Google Places API.
Retriever wrapper for Google Cloud Document AI Warehouse.
Retriever wrapper for Google Vertex AI Search.
Set the following environment variables before the tests:
export PROJECT_ID=... # Set to your Google Cloud project ID
export DATA_STORE_ID=... # The ID of the search engine to use for the test
Google Tasks toolkit.
Google Sheets tools for LangChain.
BigQuery Callback handlers allow listening to events in LangChain and logging them to Google BigQuery.
Google Calendar toolkit.