Ë
    µŒj  ã                   ó¨   — d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
  eddd	¬
«       G d„ de«      «       Z eddd¬
«       G d„ de«      «       Zy)zTool for the Google search API.é    )ÚOptional)Ú
deprecated)ÚCallbackManagerForToolRun)ÚBaseTool)ÚGoogleSearchAPIWrapperz0.0.33z1.0z*langchain_google_community.GoogleSearchRun)ÚsinceÚremovalÚalternative_importc                   óV   — e Zd ZU dZdZeed<   dZeed<   eed<   	 dded	e	e
   d
efd„Zy)ÚGoogleSearchRunz(Tool that queries the Google search API.Úgoogle_searchÚnamez‚A wrapper around Google Search. Useful for when you need to answer questions about current events. Input should be a search query.ÚdescriptionÚapi_wrapperNÚqueryÚrun_managerÚreturnc                 ó8   — | j                   j                  |«      S ©zUse the tool.)r   Úrun©Úselfr   r   s      úv/var/www/html/Fitness-lenito-AI-main/venv/lib/python3.12/site-packages/langchain_community/tools/google_search/tool.pyÚ_runzGoogleSearchRun._run   s   € ð ×Ñ×#Ñ# EÓ*Ð*ó    ©N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚstrÚ__annotations__r   r   r   r   r   © r   r   r   r      sW   … ñ 3à€Dˆ#Óð	*ð �ó ð
 (Ó'ð
 <@ñ+àð+ð Ð7Ñ8ð+ð 
ô	+r   r   z.langchain_google_community.GoogleSearchResultsc                   ód   — e Zd ZU dZdZeed<   dZeed<   dZe	ed<   e
ed<   	 dd
edee   defd„Zy	)ÚGoogleSearchResultsz;Tool that queries the Google Search API and gets back json.Úgoogle_search_results_jsonr   z®A wrapper around Google Search. Useful for when you need to answer questions about current events. Input should be a search query. Output is a JSON array of the query resultsr   é   Únum_resultsr   Nr   r   r   c                 ó`   — t        | j                  j                  || j                  «      «      S r   )r!   r   Úresultsr(   r   s      r   r   zGoogleSearchResults._run6   s(   € ô �4×#Ñ#×+Ñ+¨E°4×3CÑ3CÓDÓEÐEr   r   )r   r   r   r    r   r!   r"   r   r(   Úintr   r   r   r   r#   r   r   r%   r%   %   sg   … ñ Fà,€Dˆ#Ó,ð	Vð �ó ð
 €K�ÓØ'Ó'ð
 <@ñFàðFð Ð7Ñ8ðFð 
ô	Fr   r%   N)r    Útypingr   Úlangchain_core._api.deprecationr   Úlangchain_core.callbacksr   Úlangchain_core.toolsr   Ú+langchain_community.utilities.google_searchr   r   r%   r#   r   r   Ú<module>r1      sl   ðÙ %å å 6Ý >Ý )å Nñ Ø
ØØCôô
+�hó +óð
+ñ( Ø
ØØGôô
F˜(ó Fóñ
Fr   