community[patch]: deprecating remaining google_community integrations (#20471)

Deprecating remaining google community integrations
This commit is contained in:
Leonid Kuligin
2024-04-15 15:57:12 +02:00
committed by GitHub
parent b66a4f48fa
commit 676c68d318
8 changed files with 57 additions and 3 deletions

View File

@@ -1,10 +1,17 @@
"""Util that calls Google Search."""
from typing import Any, Dict, List, Optional
from langchain_core._api.deprecation import deprecated
from langchain_core.pydantic_v1 import BaseModel, Extra, root_validator
from langchain_core.utils import get_from_dict_or_env
@deprecated(
since="0.0.33",
removal="0.2.0",
alternative_import="langchain_google_community.GoogleSearchAPIWrapper",
)
class GoogleSearchAPIWrapper(BaseModel):
"""Wrapper for Google Search API.