Skip to main content
你可以使用 include_toolsexclude_tools 参数来指定要包含或排除的工具。这对于限制 Agent 可用工具的数量非常有用。 例如,以下是如何仅在 GmailTools 工具集中包含 get_latest_emails 工具:
类似地,从 GmailTools 工具集中排除 create_draft_email 工具的方法如下:

示例

以下是如何使用 include_toolsexclude_tools 参数来限制 Agent 可用工具数量的示例:
include_exclude_tools.py