Gmail Toolkit
This will help you getting started with the GMail toolkit. This toolkit interacts with the GMail API to read messages, draft and send messages, and more. For detailed documentation of all GmailToolkit features and configurations head to the API reference.
Setup
To use this toolkit, you will need to set up your credentials explained in the Gmail API docs. Once you've downloaded the credentials.json
file, you can start using the Gmail API.
Installation
This toolkit lives in the langchain-google-community
package. We'll need the gmail
extra:
%pip install -qU langchain-google-community\[gmail\]
If you want to get automated tracing from runs of individual tools, you can also set your LangSmith API key by uncommenting below:
# os.environ["LANGCHAIN_TRACING_V2"] = "true"
# os.environ["LANGCHAIN_API_KEY"] = getpass.getpass("Enter your LangSmith API key: ")