AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(copilot): explicitly list supported providers in connect_integration description (#13362)
Toran Bruce Richards1db86021e42b
diff --git a/autogpt_platform/backend/backend/copilot/tools/connect_integration.py b/autogpt_platform/backend/backend/copilot/tools/connect_integration.pyindex 71377f8dd1..2e68f2f76d 100644--- a/autogpt_platform/backend/backend/copilot/tools/connect_integration.py+++ b/autogpt_platform/backend/backend/copilot/tools/connect_integration.py@@ -34,8 +34,12 @@ class ConnectIntegrationTool(BaseTool):@propertydef description(self) -> str:+ supported = ", ".join(f"'{p}'" for p in SUPPORTED_PROVIDERS)return (- "Prompt the user to connect a required integration (e.g. GitHub). "+ f"Prompt the user to connect a required integration. "+ f"Supported providers: {supported}. "+ "ONLY call this tool for one of the supported providers listed above — "+ "do NOT call it for Google, Gmail, Slack, or any other provider not in the list. ""Call this when an external CLI or API call fails because the user ""has not connected the relevant account. ""The tool surfaces a credentials setup card in the chat so the user "