a
    bgT                     @   s   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	 d	eZed
dddG dd de	ZdS )zTool for the Google search API.    )OptionalType)
deprecated)CallbackManagerForToolRun)BaseTool)	BaseModelField)GooglePlacesAPIWrapperc                   @   s&   e Zd ZU dZed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__ r   r   z/var/www/html/cobodadashboardai.evdpl.com/venv/lib/python3.9/site-packages/langchain_community/tools/google_places/tool.pyr
      s   
r
   z0.0.33z1.0z+langchain_google_community.GooglePlacesTool)ZsinceZremovalZalternative_importc                   @   sd   e Zd ZU dZdZeed< dZeed< ee	dZ
e	ed< eZee ed< deee ed
ddZd	S )GooglePlacesToolz(Tool that queries the Google places API.Z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_schemaN)r   run_managerreturnc                 C   s   | j |S )zUse the tool.)r   run)selfr   r   r   r   r   _run%   s    zGooglePlacesTool._run)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   

 r   N)r   typingr   r   Zlangchain_core._api.deprecationr   Zlangchain_core.callbacksr   Zlangchain_core.toolsr   Zpydanticr   r   Z/langchain_community.utilities.google_places_apir	   r
   r   r   r   r   r   <module>   s   