langchain_community.agent_toolkits.gmail.toolkit.GmailToolkit

class langchain_community.agent_toolkits.gmail.toolkit.GmailToolkit[source]

Bases: BaseToolkit

Toolkit for interacting with Gmail.

Security Note: This toolkit contains tools that can read and modify

the state of a service; e.g., by reading, creating, updating, deleting data associated with this service.

For example, this toolkit can be used to send emails on behalf of the associated account.

See https://python.langchain.com/docs/security for more information.

Parameters

api_resource – Optional. The Google API resource. Default is None.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param api_resource: Resource [Optional]
get_tools() List[BaseTool][source]

Get the tools in the toolkit.

Return type

List[BaseTool]

Examples using GmailToolkit