Skip to main content
You can specify which tools to include or exclude from a Toolkit by using the include_tools and exclude_tools parameters. This can be very useful to limit the number of tools that are available to an Agent. For example, here’s how to include only the get_latest_emails tool in the GmailTools toolkit:
Similarly, here’s how to exclude the create_draft_email tool from the GmailTools toolkit:

Example

Here’s an example of how to use the include_tools and exclude_tools parameters to limit the number of tools that are available to an Agent:
include_exclude_tools.py