langchain-google-community: 2.0.10#

bigquery#

Classes

bigquery.BigQueryLoader(query[, project, ...])

Load from the Google Cloud Platform BigQuery.

Functions

bigquery.import_bigquery()

Import the google-cloud-bigquery library and return the client.

bq_storage_vectorstores#

Classes

bq_storage_vectorstores.bigquery.BigQueryVectorStore

A vector store implementation that utilizes BigQuery and BigQuery Vector Search.

bq_storage_vectorstores.featurestore.VertexFSVectorStore

A vector store implementation that utilizes BigQuery Storage and Vertex AI Feature Store.

Functions

calendar#

Classes

calendar.base.CalendarBaseTool

Base class for Google Calendar tools.

calendar.create_event.CalendarCreateEvent

Tool that creates an event in Google Calendar.

calendar.create_event.CreateEventSchema

Input for CalendarCreateEvent.

calendar.current_datetime.CurrentDatetimeSchema

Input for GetCurrentDatetime.

calendar.current_datetime.GetCurrentDatetime

Tool that gets the current datetime according to the calendar timezone.

calendar.delete_event.CalendarDeleteEvent

Tool that delete an event in Google Calendar.

calendar.delete_event.DeleteEventSchema

Input for CalendarDeleteEvent.

calendar.get_calendars_info.GetCalendarsInfo

Tool that get information about the calendars in Google Calendar.

calendar.move_event.CalendarMoveEvent

Tool that move an event between calendars in Google Calendar.

calendar.move_event.MoveEventSchema

Input for CalendarMoveEvent.

calendar.search_events.CalendarSearchEvents

Tool that retrieves events from Google Calendar.

calendar.search_events.SearchEventsSchema

Input for CalendarSearchEvents.

calendar.toolkit.CalendarToolkit

Toolkit for interacting with Google Calendar.

calendar.update_event.CalendarUpdateEvent

Tool that updates an event in Google Calendar.

calendar.update_event.UpdateEventSchema

Input for CalendarUpdateEvent.

Functions

calendar.utils.build_calendar_service([...])

Build a Google Calendar service.

calendar.utils.build_resouce_service([...])

calendar.utils.is_all_day_event(...)

Check if the event is all day.

docai#

Classes

docai.DocAIParser(*[, client, project_id, ...])

Google Cloud Document AI parser.

docai.DocAIParsingResults(source_path, ...)

A dataclass to store Document AI parsing results.

documentai_warehouse#

Classes

documentai_warehouse.DocumentAIWarehouseRetriever

A retriever based on Document AI Warehouse.

drive#

Classes

drive.GoogleDriveLoader

Load Google Docs from Google Drive.

gcs_directory#

Classes

gcs_directory.GCSDirectoryLoader(...[, ...])

Load from GCS directory.

gcs_file#

Classes

gcs_file.GCSFileLoader(project_name, bucket, ...)

Load from GCS file.

geocoding#

Classes

geocoding.GoogleGeocodeInput

Input for the Geocoding tool.

geocoding.GoogleGeocodingAPIWrapper

Wrapper for Google Maps Geocoding API.

geocoding.GoogleGeocodingTool

Tool that queries the Google Maps Geocoding API for batch location lookups.

gmail#

Classes

gmail.base.GmailBaseTool

Base class for Gmail tools.

gmail.create_draft.CreateDraftSchema

Input for CreateDraftTool.

gmail.create_draft.GmailCreateDraft

Tool that creates a draft email for Gmail.

gmail.get_message.GmailGetMessage

Tool that gets a message by ID from Gmail.

gmail.get_message.SearchArgsSchema

Input for GetMessageTool.

gmail.get_thread.GetThreadSchema

Input for GetMessageTool.

gmail.get_thread.GmailGetThread

Tool that gets a thread by ID from Gmail.

gmail.loader.GMailLoader(creds[, n, raise_error])

Load data from GMail.

gmail.search.GmailSearch

Tool that searches for messages or threads in Gmail.

gmail.search.Resource(value)

Enumerator of Resources to search.

gmail.search.SearchArgsSchema

Input for SearchGmailTool.

gmail.send_message.GmailSendMessage

Tool that sends a message to Gmail.

gmail.send_message.SendMessageSchema

Input for SendMessageTool.

gmail.toolkit.GmailToolkit

Toolkit for interacting with Gmail.

Functions

gmail.utils.build_gmail_service([...])

Build a Gmail service.

gmail.utils.build_resource_service([...])

Build a Gmail resource service.

gmail.utils.clean_email_body(body)

Clean email body.

gmail.utils.get_gmail_credentials([...])

Get Gmail credentials.

google_speech_to_text#

Classes

google_speech_to_text.SpeechToTextLoader(...)

Loader for Google Cloud Speech-to-Text audio transcripts.

model_armor#

Classes

model_armor.base_runnable.ModelArmorParams

Model Armor parameters.

model_armor.base_runnable.ModelArmorSanitizeBaseRunnable

Base runnable for user prompt or model response sanitization using Model Armor.

model_armor.runnable.ModelArmorSanitizePromptRunnable

Runnable to sanitize user prompts using Model Armor.

model_armor.runnable.ModelArmorSanitizeResponseRunnable

Runnable to sanitize LLM responses using Model Armor.

places_api#

Classes

places_api.GooglePlacesAPIWrapper

Wrapper around Google Places API.

places_api.GooglePlacesSchema

Input for GooglePlacesTool.

places_api.GooglePlacesTool

Tool that queries the Google places API.

sheets#

Classes

sheets.base.SheetsBaseTool

Base class for Google Sheets tools.

sheets.enums.DateTimeRenderOption(value)

Google Sheets date/time render options.

sheets.enums.FilterConditionType(value)

Filter condition types for Google Sheets data filters.

sheets.enums.MajorDimension(value)

Google Sheets major dimension options.

sheets.enums.ValueRenderOption(value)

Google Sheets value render options.

sheets.get_spreadsheet_info.GetSpreadsheetInfoSchema

Input schema for GetSpreadsheetInfo.

sheets.get_spreadsheet_info.SheetsGetSpreadsheetInfoTool

Tool that retrieves comprehensive metadata information from Google Sheets. This tool provides detailed metadata extraction capabilities from Google Sheets, allowing you to understand spreadsheet structure, sheet properties, named ranges, and other organizational information. It's essential for exploring spreadsheet contents before reading data and understanding the overall structure. Instantiate: .. code-block:: python from langchain_google_community.sheets import SheetsGetSpreadsheetInfoTool tool = SheetsGetSpreadsheetInfoTool( api_key="your_api_key", include_grid_data=False, include_formatting=False, include_validation=False, ) Invoke directly: .. code-block:: python result = tool.run( { "spreadsheet_id": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms", "include_grid_data": False, "fields": "properties,sheets.properties", } ) Invoke with agent: .. code-block:: python agent.invoke({"input": "Get information about the spreadsheet structure"}) :returns: - Spreadsheet properties: Title, locale, timezone, etc. - Sheet information: Names, IDs, dimensions, properties - Named ranges: Defined ranges and their locations - Grid data: Detailed cell information (optional) - Metadata: Processing information and data structure :rtype: JSON string containing.

sheets.read_sheet_tools.BaseReadTool

Base class for Google Sheets read operations.

sheets.read_sheet_tools.BatchReadSheetDataSchema

Input schema for BatchReadSheetData.

sheets.read_sheet_tools.DataFilterSchema

Schema for data filter criteria.

sheets.read_sheet_tools.FilteredReadSheetDataSchema

Input schema for FilteredReadSheetData.

sheets.read_sheet_tools.ReadBaseSchema

Base schema for all read operations.

sheets.read_sheet_tools.ReadSheetDataSchema

Input schema for ReadSheetData.

sheets.read_sheet_tools.SheetsBatchReadDataTool

Tool that reads data from multiple ranges in Google Sheets efficiently.

sheets.read_sheet_tools.SheetsFilteredReadDataTool

Tool that reads data from Google Sheets with advanced filtering capabilities.

sheets.read_sheet_tools.SheetsReadDataTool

Tool that reads data from a single range in Google Sheets.

sheets.toolkit.SheetsToolkit

Toolkit for interacting with Google Sheets.

Functions

sheets.utils.build_sheets_service([...])

Build a Google Sheets service with OAuth2 credentials (full access).

sheets.utils.build_sheets_service_with_api_key(api_key)

Build a Google Sheets service with API key (read-only access).

sheets.utils.validate_range_name(range_name)

Validate and normalize a range name.

sheets.utils.validate_spreadsheet_id(...)

Validate and normalize a Google Spreadsheet ID.

texttospeech#

Classes

texttospeech.TextToSpeechTool

Tool that queries the Google Cloud Text to Speech API.

translate#

Classes

translate.GoogleTranslateTransformer(...[, ...])

Translate text documents using Google Cloud Translation.

vertex_check_grounding#

Classes

vertex_check_grounding.VertexAICheckGroundingWrapper

Initializes the Vertex AI CheckGroundingOutputParser with configurable parameters.

vertex_rank#

Classes

vertex_rank.VertexAIRank

Initializes the Vertex AI Ranker with configurable parameters.

vision#

Classes

vision.CloudVisionLoader(file_path[, project])

vision.CloudVisionParser([project])