
    3fi5                        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 Tasks tools.    )annotations)TYPE_CHECKING)BaseTool)Field)build_tasks_service)Resourcec                  @    e Zd ZU dZ ee      Zded<   edd       Z	y)TasksBaseToolr   )default_factoryr	   api_resourcec                     | |      S )zCreate a tool from an api resource.

        Args:
            api_resource: The api resource to use.

        Returns:
            A tool.
        )r    )clsr   s     c/var/www/auto_recruiter/arenv/lib/python3.12/site-packages/langchain_google_community/tasks/base.pyfrom_api_resourcezTasksBaseTool.from_api_resource   s     --    N)r   r	   returnz'TasksBaseTool')
__name__
__module____qualname____doc__r   r   r   __annotations__classmethodr   r   r   r   r   r      s'    ,"3FGL(G	. 	.r   r   N)r   
__future__r   typingr   langchain_core.toolsr   pydanticr   &langchain_google_community.tasks.utilsr   googleapiclient.discoveryr	   ImportErrorr   r   r   r   <module>r"      sE    ( "   )  F26
.H .	  s   = AA