verbose=False, callbacks=None, callback_manager=None, api_resource=<googleapiclient.discovery.Resource object at 0x10e5c6d10>),     GmailGetThread(name='get_gmail_thread', description=('Use this tool to search for email messages. The input must be a valid Gmail query. The output is a JSON list of messages.',), args_schema=<class 'langchain.tools.gmail.get_thread.GetThreadSchema'>, return_direct=False, verbose=False, callbacks=None, callback_manager=None, api_resource=<googleapiclient.discovery.Resource object at 0x10e5c6d10>)]Use within an Agent‚Äãfrom langchain.llms import OpenAIfrom langchain.agents import initialize_agent, AgentTypellm = OpenAI(temperature=0)agent = initialize_agent(    tools=toolkit.get_tools(),    llm=llm,    agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,)agent.run(    "Create a gmail draft for me to edit of a letter from the perspective of a sentient parrot"    " who is looking to collaborate on some research with her"    " estranged friend, a cat. Under no circumstances may you send the message, however.")    WARNING:root:Failed to load default session, using empty session: 0    WARNING:root:Failed to persist run: {"detail":"Not Found"}    'I have created a draft email for you to edit. The draft Id is r5681294731961864018.'agent.run("Could you search in my drafts for the latest email?")    WARNING:root:Failed to load default session, using empty session: 0    WARNING:root:Failed to persist run: {"detail":"Not Found"}    "The latest email in your drafts is from hopefulparrot@gmail.com with the subject 'Collaboration Opportunity'. The body of the email reads: 'Dear [Friend], I hope this letter finds you well. I am writing to you in the hopes of rekindling our friendship and to discuss the possibility of collaborating on some research together. I know that we have had our differences in the past, but I believe that we can put them aside and work together for the greater good. I look forward to hearing from you. Sincerely,
This notebook walks through connecting a LangChain email to the Gmail API.
This notebook walks through connecting a LangChain email to the Gmail API. ->: verbose=False, callbacks=None, callback_manager=None, api_resource=<googleapiclient.discovery.Resource object at 0x10e5c6d10>),     GmailGetThread(name='get_gmail_thread', description=('Use this tool to search for email messages. The input must be a valid Gmail query. The output is a JSON list of messages.',), args_schema=<class 'langchain.tools.gmail.get_thread.GetThreadSchema'>, return_direct=False, verbose=False, callbacks=None, callback_manager=None, api_resource=<googleapiclient.discovery.Resource object at 0x10e5c6d10>)]Use within an Agent‚Äãfrom langchain.llms import OpenAIfrom langchain.agents import initialize_agent, AgentTypellm = OpenAI(temperature=0)agent = initialize_agent(    tools=toolkit.get_tools(),    llm=llm,    agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION,)agent.run(    "Create a gmail draft for me to edit of a letter from the perspective of a sentient parrot"    " who is looking to collaborate on some research with her"    " estranged friend, a cat. Under no circumstances may you send the message, however.")    WARNING:root:Failed to load default session, using empty session: 0    WARNING:root:Failed to persist run: {"detail":"Not Found"}    'I have created a draft email for you to edit. The draft Id is r5681294731961864018.'agent.run("Could you search in my drafts for the latest email?")    WARNING:root:Failed to load default session, using empty session: 0    WARNING:root:Failed to persist run: {"detail":"Not Found"}    "The latest email in your drafts is from hopefulparrot@gmail.com with the subject 'Collaboration Opportunity'. The body of the email reads: 'Dear [Friend], I hope this letter finds you well. I am writing to you in the hopes of rekindling our friendship and to discuss the possibility of collaborating on some research together. I know that we have had our differences in the past, but I believe that we can put them aside and work together for the greater good. I look forward to hearing from you. Sincerely,