langchain.tools.gmail.search.SearchArgsSchema¶
- class langchain.tools.gmail.search.SearchArgsSchema(*, query: str, resource: Resource = Resource.MESSAGES, max_results: int = 10)[source]¶
Bases:
BaseModelInput for SearchGmailTool.
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 max_results: int = 10¶
The maximum number of results to return.
- param query: str [Required]¶
The Gmail query. Example filters include from:sender, to:recipient, subject:subject, -filtered_term, in:folder, is:important|read|starred, after:year/mo/date, before:year/mo/date, label:label_name “exact phrase”. Search newer/older than using d (day), m (month), and y (year): newer_than:2d, older_than:1y. Attachments with extension example: filename:pdf. Multiple term matching example: from:amy OR from:david.
- param resource: langchain.tools.gmail.search.Resource = Resource.MESSAGES¶
Whether to search for threads or messages.