§
    šŠtj  ã                  óŠ   — 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	m
Z
 d dlmZ  G d„ de	¦  «        Z G d	„ d
e¦  «        ZdS )é    )Úannotations)ÚOptional)ÚCallbackManagerForToolRun)ÚBaseTool)Ú	BaseModelÚField)ÚJinaSearchAPIWrapperc                  ó6   — e Zd ZU dZ ed¬¦  «        Zded<   dS )Ú	JinaInputzInput for the Jina search tool.zsearch query to look up)ÚdescriptionÚstrÚqueryN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ú__annotations__© ó    úh/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/langchain_community/tools/jina_search/tool.pyr   r      s7   € € € € € € Ø)Ð)à�Ð#<Ð=Ñ=Ô=€EÐ=Ð=Ð=Ñ=Ð=Ð=r   r   c                  ó^   — e Zd ZU dZdZded<   dZded<    ee¬¦  «        Z	ded	<   	 ddd„Z
d
S )Ú
JinaSearchzCTool that queries the JinaSearch.

    ..versionadded:: 0.2.16
    Újina_searchr   Únamea9  Jina Reader allows you to ground your LLM with the latest information from the web. Jina Reader will search the web and return the top five results with their URLs and contents, each in clean, LLM-friendly text. This way, you can always keep your LLM up-to-date, improve its factuality, and reduce hallucinations.r   )Údefault_factoryr	   Úsearch_wrapperNr   Úrun_managerú#Optional[CallbackManagerForToolRun]Úreturnc                ó6   — | j                              |¦  «        S )zUse the tool.)r   Úrun)Úselfr   r   s      r   Ú_runzJinaSearch._run#   s   € ð Ô"×&Ò& uÑ-Ô-Ð-r   )N)r   r   r   r   r   r   )r   r   r   r   r   r   r   r   r	   r   r#   r   r   r   r   r      s’   € € € € € € ðð ð
 €DÐÐÐÑð	Ið ð ð ð ñ ð ,1¨5ÐAUÐ+VÑ+VÔ+V€NÐVÐVÐVÑVð
 <@ð.ð .ð .ð .ð .ð .ð .r   r   N)Ú
__future__r   Útypingr   Úlangchain_core.callbacksr   Úlangchain_core.toolsr   Úpydanticr   r   Ú)langchain_community.utilities.jina_searchr	   r   r   r   r   r   ú<module>r*      sÕ   ðØ "Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð à >Ð >Ð >Ð >Ð >Ð >Ø )Ð )Ð )Ð )Ð )Ð )Ø %Ð %Ð %Ð %Ð %Ð %Ð %Ð %à JÐ JÐ JÐ JÐ JÐ Jð>ð >ð >ð >ð >�	ñ >ô >ð >ð.ð .ð .ð .ð .�ñ .ô .ð .ð .ð .r   