
    3fiE                        d Z 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
 erddlmZ n	 ddlmZ  G d d	e      Zy
# e$ r Y w xY w)%Base class for Google Calendar tools.    )annotations)TYPE_CHECKING)BaseTool)Field)build_calendar_service)Resourcec                  @    e Zd ZU dZ ee      Zded<   edd       Z	y)CalendarBaseToolr   )default_factoryr	   api_resourcec                     | |      S )zCreate a tool from an api resource.

        Args:
            api_resource: The api resource to use.

        Returns:
            A tool.
        )service )clsr   s     f/var/www/auto_recruiter/arenv/lib/python3.12/site-packages/langchain_google_community/calendar/base.pyfrom_api_resourcez"CalendarBaseTool.from_api_resource   s     <((    N)r   r	   returnz'CalendarBaseTool')
__name__
__module____qualname____doc__r   r   r   __annotations__classmethodr   r   r   r   r   r      s'    /"3IJL(J	) 	)r   r   N)r   
__future__r   typingr   langchain_core.toolsr   pydanticr   )langchain_google_community.calendar.utilsr   googleapiclient.discoveryr	   ImportErrorr   r   r   r   <module>r#      sE    + "   )  L26
)x )	  s   = AA