
    Ng                     ^    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	  G d de          Z
dS )	    )Optional)CallbackManagerForToolRun)BaseTool)Field)PubMedAPIWrapperc                   v    e Zd ZU dZdZeed<   dZeed<    ee	          Z
e	ed<   	 dd	ed
ee         defdZdS )PubmedQueryRunz"Tool that searches the PubMed API.pub_mednamezA wrapper around PubMed. Useful for when you need to answer questions about medicine, health, and biomedical topics from biomedical literature, MEDLINE, life science journals, and online books. Input should be a search query.description)default_factoryapi_wrapperNqueryrun_managerreturnc                 6    | j                             |          S )zUse the PubMed tool.)r   run)selfr   r   s      a/var/www/html/ai-engine/env/lib/python3.11/site-packages/langchain_community/tools/pubmed/tool.py_runzPubmedQueryRun._run   s     ##E***    )N)__name__
__module____qualname____doc__r   str__annotations__r   r   r   r   r   r   r    r   r   r	   r	   
   s         ,,D#	*     %*E:J$K$K$KK!KKK
 <@+ ++ 78+ 
	+ + + + + +r   r	   N)typingr   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   $langchain_community.utilities.pubmedr   r	   r   r   r   <module>r$      s          > > > > > > ) ) ) ) ) )       A A A A A A+ + + + +X + + + + +r   