
    dhT                     N    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      r	g)	zTool for the Golden API.    )Optional)CallbackManagerForToolRun)BaseTool)GoldenQueryAPIWrapperc                   b    \ rS rSr% SrSr\\S'   Sr\\S'   \	\S'    SS	\S
\
\   S\4S jjrSrg)GoldenQueryRun   zNTool 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    U R                   R                  U5      $ )zUse the Golden tool.)r   run)selfr   r   s      c/var/www/html/shao/venv/lib/python3.13/site-packages/langchain_community/tools/golden_query/tool.py_runGoldenQueryRun._run   s     ##E**     )N)__name__
__module____qualname____firstlineno____doc__r   str__annotations__r   r   r   r   r   __static_attributes__r   r   r   r   r      sZ    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   