Ë
    7 |h¦  ã                   óx   — d Z ddlmZ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 G d	„ d
e«      Zy)zTool for the Google Books API.é    )ÚOptionalÚType)ÚCallbackManagerForToolRun)ÚBaseTool)Ú	BaseModelÚField)ÚGoogleBooksAPIWrapperc                   ó.   — e Zd ZU dZ ed¬«      Zeed<   y)ÚGoogleBooksQueryInputz$Input for the GoogleBooksQuery tool.z query to look up on google books)ÚdescriptionÚqueryN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚstrÚ__annotations__© ó    úe/var/www/html/test/engine/venv/lib/python3.12/site-packages/langchain_community/tools/google_books.pyr   r      s   … Ù.áÐ#EÔF€Eˆ3ÔFr   r   c                   ój   — e Zd ZU dZdZeed<   dZeed<   eed<   e	Z
ee   ed<   	 dd	ed
ee   defd„Zy)ÚGoogleBooksQueryRunz(Tool that searches the Google Books API.ÚGoogleBooksÚnamezÂA wrapper around Google Books. Useful for when you need to answer general inquiries about books of certain topics and generate recommendation based off of key wordsInput should be a query stringr   Úapi_wrapperÚargs_schemaNr   Úrun_managerÚreturnc                 ó8   — | j                   j                  |«      S )zUse the Google Books tool.)r   Úrun)Úselfr   r   s      r   Ú_runzGoogleBooksQueryRun._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      sc   … Ù2à€Dˆ#Óð	)ð ó ð 'Ó&Ø#8€Ki‘Ó8ð
 <@ñ+àð+ð Ð7Ñ8ð+ð 
ô	+r   r   N)r   Útypingr   r   Úlangchain_core.callbacksr   Úlangchain_core.toolsr   Úpydanticr   r   Ú*langchain_community.utilities.google_booksr	   r   r   r   r   r   ú<module>r(      s1   ðÙ $ç !å >Ý )ß %å LôG˜Iô Gô+˜(õ +r   