
    h                     p    d dl mZ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 G d d	e      Zy
)    )OptionalType)CallbackManagerForToolRun)BaseTool)	BaseModel)PolygonAPIWrapperc                       e Zd ZU dZeed<   y)Inputsz#Inputs for Polygon's Last Quote APIqueryN)__name__
__module____qualname____doc__str__annotations__     j/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/langchain_community/tools/polygon/last_quote.pyr
   r
   
   s
    -Jr   r
   c                   x    e Zd ZU dZdZeed<   dZeed<   dZeed<   e	Z
ee   ed<   eed	<   	 ddedee   defdZy
)PolygonLastQuotez6Tool that gets the last quote of a ticker from Polygonget_last_quotemodepolygon_last_quotenamezA wrapper around Polygon's Last Quote API. This tool is useful for fetching the latest price of a stock. Input should be the ticker that you want to query the last price quote for.descriptionargs_schemaapi_wrapperNr   run_managerreturnc                 P    | j                   j                  | j                  |      S )zUse the Polygon API tool.)ticker)r   runr   )selfr   r   s      r   _runzPolygonLastQuote._run   s$     ##DIIe#<<r   )N)r   r   r   r   r   r   r   r   r   r
   r   r   r   r   r   r   r$   r   r   r   r   r      sn    @ D# $D#$	V  
 $*Ki)""
 <@== 78= 
	=r   r   N)typingr   r   langchain_core.callbacksr   langchain_core.toolsr   pydanticr   %langchain_community.utilities.polygonr   r
   r   r   r   r   <module>r*      s,    ! > )  CY =x =r   