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

@@ -2,6 +2,7 @@
from typing import Optional, Type
from langchain_core._api.deprecation import deprecated
from langchain_core.callbacks import CallbackManagerForToolRun
from langchain_core.pydantic_v1 import BaseModel, Field
from langchain_core.tools import BaseTool
@@ -15,6 +16,11 @@ class GooglePlacesSchema(BaseModel):
query: str = Field(..., description="Query for google maps")
@deprecated(
since="0.0.33",
removal="0.2.0",
alternative_import="langchain_google_community.GooglePlacesTool",
)
class GooglePlacesTool(BaseTool):
"""Tool that queries the Google places API."""