
    3fid                        d dl mZ d dlmZmZ d dlmZ d dlmZ 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 d d
lmZ d dlmZ erd dlmZ n	 d dlmZ dgZ G d de      Zy# e$ r Y w xY w)    )annotations)TYPE_CHECKINGList)BaseToolkit)BaseTool)
ConfigDictField)GmailCreateDraft)GmailGetMessage)GmailGetThread)GmailSearch)GmailSendMessage)build_gmail_service)Resourcezhttps://mail.google.com/c                  H    e Zd ZU dZ ee      Zded<    ed      Z	d	dZ
y)
GmailToolkita  Toolkit for interacting with Gmail.

    Provides tools for Gmail operations including creating drafts, sending messages,
    searching emails, and retrieving messages and threads.

    !!! warning "Security"

        This toolkit contains tools that can read and modify the state of a
        service. For example, it can send emails and read messages on behalf
        of the associated account.

        See [Security Best Practices](https://docs.langchain.com/oss/python/security-policy)
        for more information.
    )default_factoryr   api_resourceT)arbitrary_types_allowedc                    t        | j                        t        | j                        t        | j                        t	        | j                        t        | j                        gS )zGet the tools in the toolkit.)r   )r
   r   r   r   r   r   )selfs    f/var/www/auto_recruiter/arenv/lib/python3.12/site-packages/langchain_google_community/gmail/toolkit.py	get_toolszGmailToolkit.get_tools4   sT     $*;*;<$*;*;<T%6%67):):;(9(9:
 	
    N)returnzList[BaseTool])__name__
__module____qualname____doc__r	   r   r   __annotations__r   model_configr    r   r   r   r      s+     #3FGL(G $L
r   r   N)
__future__r   typingr   r   'langchain_community.agent_toolkits.baser   langchain_core.toolsr   pydanticr   r	   -langchain_google_community.gmail.create_draftr
   ,langchain_google_community.gmail.get_messager   +langchain_google_community.gmail.get_threadr   'langchain_google_community.gmail.searchr   -langchain_google_community.gmail.send_messager   &langchain_google_community.gmail.utilsr   googleapiclient.discoveryr   ImportErrorSCOPESr   r"   r   r   <module>r1      s^    " & ? ) & J H F ? J F26
 %	%
; 
  s   A& &A.-A.