§
    ¦ìNg¦  ã                   ó†   — 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dS )zTool for the Google Books API.é    )ÚOptionalÚType)ÚCallbackManagerForToolRun)ÚBaseTool)Ú	BaseModelÚField)ÚGoogleBooksAPIWrapperc                   ó6   — e Zd ZU dZ ed¬¦  «        Zeed<   dS )ÚGoogleBooksQueryInputz$Input for the GoogleBooksQuery tool.z query to look up on google books)ÚdescriptionÚqueryN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚstrÚ__annotations__© ó    úb/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/tools/google_books.pyr   r      s6   € € € € € € Ø.Ð.àÐ#EÐFÑFÔF€Eˆ3ÐFÐFÑFÐFÐFr   r   c                   óx   — 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dS )Ú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                 ó6   — | 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      sª   € € € € € € Ø2Ð2à€Dˆ#ÐÐÑð	)ð ð ð ñ ð 'Ð&Ð&Ñ&Ø#8€Ki”Ð8Ð8Ñ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(      s×   ðØ $Ð $à !Ð !Ð !Ð !Ð !Ð !Ð !Ð !à >Ð >Ð >Ð >Ð >Ð >Ø )Ð )Ð )Ð )Ð )Ð )Ø %Ð %Ð %Ð %Ð %Ð %Ð %Ð %à LÐ LÐ LÐ LÐ LÐ LðGð Gð Gð Gð G˜Iñ Gô Gð Gð+ð +ð +ð +ð +˜(ñ +ô +ð +ð +ð +r   