
    NgT                         d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZmZ ddlmZ  G d d	e          Z ed
dd           G d de	                      ZdS )zTool for the Google search API.    )OptionalType)
deprecated)CallbackManagerForToolRun)BaseTool)	BaseModelField)GooglePlacesAPIWrapperc                   8    e Zd ZU dZ edd          Zeed<   dS )GooglePlacesSchemazInput for GooglePlacesTool..zQuery for google maps)descriptionqueryN)__name__
__module____qualname____doc__r	   r   str__annotations__     h/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/tools/google_places/tool.pyr   r      s8         %%s(?@@@E3@@@@@r   r   z0.0.33z1.0z+langchain_google_community.GooglePlacesTool)sinceremovalalternative_importc                       e Zd ZU dZdZeed<   dZeed<    ee	          Z
e	ed<   eZee         ed<   	 dd
edee         defdZd	S )GooglePlacesToolz(Tool that queries the Google places API.google_placesnamezA wrapper around Google Places. Useful for when you need to validate or discover addressed from ambiguous text. Input should be a search query.r   )default_factoryapi_wrapperargs_schemaNr   run_managerreturnc                 6    | j                             |          S )zUse the tool.)r    run)selfr   r"   s      r   _runzGooglePlacesTool._run%   s     ##E***r   )N)r   r   r   r   r   r   r   r   r	   r
   r    r   r!   r   r   r   r   r'   r   r   r   r   r      s          32D#	*     +0%@V*W*W*WK'WWW#5Ki555
 <@+ ++ 78+ 
	+ + + + + +r   r   N)r   typingr   r   langchain_core._api.deprecationr   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   r	   /langchain_community.utilities.google_places_apir
   r   r   r   r   r   <module>r.      s   % % ! ! ! ! ! ! ! ! 6 6 6 6 6 6 > > > > > > ) ) ) ) ) ) % % % % % % % % R R R R R RA A A A A A A A 
D  
+ + + + +x + + 
+ + +r   