
    hT                     N    d 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	y)	zTool for the Golden API.    )Optional)CallbackManagerForToolRun)BaseTool)GoldenQueryAPIWrapperc                   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)GoldenQueryRunzNTool that adds the capability to query using the Golden API and get back JSON.golden_querynameaI  A wrapper around Golden Query API. Useful for getting entities that match a natural language query from Golden's Knowledge Base.
Example queries:
- companies in nanotech
- list of cloud providers starting in 2019
Input should be the natural language query.
Output is a paginated list of results or an error object in JSON format.descriptionapi_wrapperNqueryrun_managerreturnc                 8    | j                   j                  |      S )zUse the Golden tool.)r   run)selfr   r   s      i/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/langchain_community/tools/golden_query/tool.py_runzGoldenQueryRun._run   s     ##E**    )N)__name__
__module____qualname____doc__r
   str__annotations__r   r   r   r   r    r   r   r   r      sU    XD#	  
 '&
 <@++ 78+ 
	+r   r   N)
r   typingr   langchain_core.callbacksr   langchain_core.toolsr   *langchain_community.utilities.golden_queryr   r   r   r   r   <module>r!      s       > ) L+X +r   