langchain-google の API リファレンス
langchain-google (langchain-ai/langchain-google) の公開 API 84 件 —— クラス 44、関数 12、メソッド 28。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: langchain-ai/langchain-google
| 種別 | 件数 |
|---|---|
| クラス | 44 |
| 関数 | 12 |
| メソッド | 28 |
API 一覧
func
libs.community.langchain_google_community._utils.get_user_agent(module:Optional[str]=None) -> Tuple[str, str]Returns a custom user agent header.
func
libs.community.langchain_google_community._utils.import_google() -> Tuple[Request, Credentials, ServiceCredentials]Import google libraries.
func
libs.community.langchain_google_community._utils.import_installed_app_flow() -> InstalledAppFlowImport `InstalledAppFlow` class.
class
libs.community.langchain_google_community.bigquery.BigQueryLoaderLoad documents from Google Cloud BigQuery.
class
libs.community.langchain_google_community.calendar.base.CalendarBaseToolBase class for Google Calendar tools.
method
libs.community.langchain_google_community.calendar.base.CalendarBaseTool.from_api_resource(api_resource:Resource) -> 'CalendarBaseTool'Create a tool from an api resource.
class
libs.community.langchain_google_community.calendar.create_event.CreateEventSchemaInput schema for `CalendarCreateEvent`.
class
libs.community.langchain_google_community.calendar.delete_event.DeleteEventSchemaInput schema for `CalendarDeleteEvent`.
class
libs.community.langchain_google_community.calendar.move_event.MoveEventSchemaInput schema for `CalendarMoveEvent`.
class
libs.community.langchain_google_community.calendar.update_event.UpdateEventSchemaInput schema for `CalendarUpdateEvent`.
func
libs.community.langchain_google_community.calendar.utils.is_all_day_event(start_datetime:str, end_datetime:str) -> boolCheck if the event is all day.
class
libs.community.langchain_google_community.docai.DocAIParserGoogle Cloud Document AI parser.
method
libs.community.langchain_google_community.docai.DocAIParser.lazy_parse(blob:Blob) -> Iterator[Document]Parses a blob lazily.
class
libs.community.langchain_google_community.drive.GoogleDriveLoaderLoad documents from Google Drive.
method
libs.community.langchain_google_community.drive.GoogleDriveLoader.load() -> List[Document]Load documents.
method
libs.community.langchain_google_community.drive.GoogleDriveLoader.validate_credentials_path(v:Any, **kwargs:Any) -> AnyValidate that credentials_path exists.
method
libs.community.langchain_google_community.gcs_directory.GCSDirectoryLoader.load() -> List[Document]Load documents.
class
libs.community.langchain_google_community.gcs_file.GCSFileLoaderLoad documents from Google Cloud Storage file.
method
libs.community.langchain_google_community.gcs_file.GCSFileLoader.load() -> List[Document]Load documents.
class
libs.community.langchain_google_community.geocoding.GoogleGeocodeInputInput schema for `GoogleGeocodingTool`.
class
libs.community.langchain_google_community.geocoding.GoogleGeocodingAPIWrapperWrapper for Google Maps Geocoding API.
method
libs.community.langchain_google_community.geocoding.GoogleGeocodingAPIWrapper.clean_results(results:List[Dict]) -> List[Dict]Clean and format results.
method
libs.community.langchain_google_community.geocoding.GoogleGeocodingAPIWrapper.geocode_async(query:str, language:Optional[str]=None, region:Optional[str]=None) -> Dict[str, Any]Geocode query asynchronously.
method
libs.community.langchain_google_community.geocoding.GoogleGeocodingAPIWrapper.validate_environment(values:Dict) -> AnyValidate that api key exists in environment.
class
libs.community.langchain_google_community.gmail.base.GmailBaseToolBase class for Gmail tools.
method
libs.community.langchain_google_community.gmail.base.GmailBaseTool.from_api_resource(api_resource:Resource) -> 'GmailBaseTool'Create a tool from an api resource.
class
libs.community.langchain_google_community.gmail.create_draft.CreateDraftSchemaInput schema for `CreateDraftTool`.
class
libs.community.langchain_google_community.gmail.create_draft.GmailCreateDraftTool that creates a draft email for Gmail.
class
libs.community.langchain_google_community.gmail.get_message.GmailGetMessageTool that gets a message by ID from Gmail.
class
libs.community.langchain_google_community.gmail.get_message.SearchArgsSchemaInput schema for `GetMessageTool`.
class
libs.community.langchain_google_community.gmail.get_thread.GetThreadSchemaInput schema for `GetThreadTool`.
class
libs.community.langchain_google_community.gmail.get_thread.GmailGetThreadTool that gets a thread by ID from Gmail.
class
libs.community.langchain_google_community.gmail.loader.GMailLoaderLoad chat sessions from Gmail.
class
libs.community.langchain_google_community.gmail.search.ResourceEnumerator of Resources to search.
class
libs.community.langchain_google_community.gmail.search.SearchArgsSchemaInput schema for `SearchGmailTool`.
class
libs.community.langchain_google_community.gmail.send_message.GmailSendMessageTool that sends a message to Gmail.
class
libs.community.langchain_google_community.gmail.send_message.SendMessageSchemaInput schema for `SendMessageTool`.
class
libs.community.langchain_google_community.gmail.toolkit.GmailToolkitToolkit for interacting with Gmail.
method
libs.community.langchain_google_community.gmail.toolkit.GmailToolkit.get_tools() -> List[BaseTool]Get the tools in the toolkit.
func
libs.community.langchain_google_community.gmail.utils.clean_email_body(body:str) -> strClean email body.
class
libs.community.langchain_google_community.model_armor.base_runnable.ModelArmorParamsModel Armor parameters.
method
libs.community.langchain_google_community.model_armor.base_runnable.ModelArmorParams.validate_project() -> 'ModelArmorParams'Validate the project ID.
class
libs.community.langchain_google_community.places_api.GooglePlacesAPIWrapperWrapper around Google Places API.
class
libs.community.langchain_google_community.places_api.GooglePlacesSchemaInput schema for `GooglePlacesTool`.
class
libs.community.langchain_google_community.places_api.GooglePlacesToolTool that queries the Google Places API.
class
libs.community.langchain_google_community.search.GoogleSearchAPIWrapperWrapper for Google Custom Search API.
method
libs.community.langchain_google_community.search.GoogleSearchAPIWrapper.run(query:str) -> strRun query through Google Search and parse result.
class
libs.community.langchain_google_community.sheets.base.SheetsBaseToolBase class for Google Sheets tools.
method
libs.community.langchain_google_community.sheets.base.SheetsBaseTool.from_api_key(api_key:str) -> 'SheetsBaseTool'Create a tool from an API key.
method
libs.community.langchain_google_community.sheets.base.SheetsBaseTool.from_api_resource(api_resource:Resource) -> 'SheetsBaseTool'Create a tool from an API resource.
class
libs.community.langchain_google_community.sheets.enums.DateTimeRenderOptionGoogle Sheets date/time render options.
class
libs.community.langchain_google_community.sheets.enums.MajorDimensionGoogle Sheets major dimension options.
class
libs.community.langchain_google_community.sheets.enums.ValueRenderOptionGoogle Sheets value render options.
class
libs.community.langchain_google_community.sheets.read_sheet_tools.ReadSheetDataSchemaInput schema for `SheetsReadDataTool`.
class
libs.community.langchain_google_community.sheets.toolkit.SheetsToolkitToolkit for interacting with Google Sheets.
method
libs.community.langchain_google_community.sheets.toolkit.SheetsToolkit.get_tools() -> List[BaseTool]Get the tools in the toolkit.
func
libs.community.langchain_google_community.sheets.utils.validate_a1_range(range_name:str) -> boolValidate A1 notation range format.
func
libs.community.langchain_google_community.sheets.utils.validate_range_name(range_name:str) -> strValidate and normalize a range name.
func
libs.community.langchain_google_community.sheets.utils.validate_spreadsheet_id(spreadsheet_id:str) -> strValidate and normalize a Google Spreadsheet ID.
class
libs.community.langchain_google_community.vertex_ai_search.VertexAISearchRetriever`Google Vertex AI Search` retriever.
func
libs.genai.langchain_google_genai._common.get_user_agent(module:str | None=None) -> tuple[str, str]Returns a custom user agent header.
class
libs.genai.langchain_google_genai._image_utils.RouteImage loading route.
class
libs.genai.langchain_google_genai.chat_models.ChatGoogleGenerativeAIGoogle GenAI chat model integration.
method
libs.genai.langchain_google_genai.chat_models.ChatGoogleGenerativeAI.get_num_tokens(text:str) -> intGet the number of tokens present in the text.
method
libs.genai.langchain_google_genai.chat_models.ChatGoogleGenerativeAI.validate_environment() -> SelfValidates params and builds client.
class
libs.genai.langchain_google_genai.embeddings.GoogleGenerativeAIEmbeddingsGoogle Generative AI Embeddings.
method
libs.genai.langchain_google_genai.embeddings.GoogleGenerativeAIEmbeddings.embed_query(text:str, *task_type:str | None=None, *title:str | None=None, *output_dimensionality:int | None=None) -> list[float]Embed a single text.
class
libs.vertexai.langchain_google_vertexai._image_utils.RouteImage Loading Route.
func
libs.vertexai.langchain_google_vertexai._utils.enforce_stop_tokens(text:str, stop:list[str]) -> strCut off the text as soon as any stop words occur.
func
libs.vertexai.langchain_google_vertexai._utils.get_user_agent(module:str | None=None) -> tuple[str, str]Returns a custom user agent header.
func
libs.vertexai.langchain_google_vertexai._utils.load_image_from_gcs(path:str, project:str | None=None) -> ImageLoads an `Image` from GCS.
method
libs.vertexai.langchain_google_vertexai.callbacks.VertexAICallbackHandler.on_llm_end(response:LLMResult, **kwargs:Any) -> NoneCollects token usage.
method
libs.vertexai.langchain_google_vertexai.callbacks.VertexAICallbackHandler.on_llm_new_token(token:str | list[str | dict[str, Any]], **kwargs:Any) -> NoneRuns on new LLM token.
method
libs.vertexai.langchain_google_vertexai.callbacks.VertexAICallbackHandler.on_llm_start(serialized:dict[str, Any], prompts:list[str], **kwargs:Any) -> NoneRuns when LLM starts running.
method
libs.vertexai.langchain_google_vertexai.chat_models.ChatVertexAI.get_num_tokens(text:str) -> intGet the number of tokens present in the text.
class
libs.vertexai.langchain_google_vertexai.embeddings.VertexAIEmbeddingsGoogle Cloud VertexAI embedding models.
method
libs.vertexai.langchain_google_vertexai.embeddings.VertexAIEmbeddings.embed(texts:list[str], embeddings_task_type:EmbeddingTaskTypes | None=None, dimensions:int | None=None, title:str | None=None) -> list[list[float]]Embed a list of strings.
method
libs.vertexai.langchain_google_vertexai.embeddings.VertexAIEmbeddings.embed_documents(texts:list[str], *embeddings_task_type:EmbeddingTaskTypes='RETRIEVAL_DOCUMENT') -> list[list[float]]Embed a list of documents.
method
libs.vertexai.langchain_google_vertexai.embeddings.VertexAIEmbeddings.embed_query(text:str, *embeddings_task_type:EmbeddingTaskTypes='RETRIEVAL_QUERY') -> list[float]Embed a text.
method
libs.vertexai.langchain_google_vertexai.evaluators._core.StringEvaluator.evaluation_name() -> strThe name of the evaluation.
class
libs.vertexai.langchain_google_vertexai.functions_utils.PydanticFunctionsOutputParserParse an output as a pydantic object.
method
libs.vertexai.langchain_google_vertexai.llms.VertexAI.get_num_tokens(text:str) -> intGet the number of tokens present in the text.
class
libs.vertexai.langchain_google_vertexai.vision_models.VertexAIImageGeneratorChatGenerates an image from a prompt.
class
libs.vertexai.langchain_google_vertexai.vision_models.VertexAIVisualQnAChatChat implementation of a visual QnA model.
この情報について
掲載しているシグネチャは langchain-ai/langchain-google の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。