fix(connectors): revert Gmail connectors as live-tool only

This commit is contained in:
Anish Sarkar 2026-05-07 03:10:58 +05:30
parent b01173fe07
commit 2b7d713db6

View file

@ -809,16 +809,7 @@ async def index_connector_content(
from app.services.mcp_oauth.registry import LIVE_CONNECTOR_TYPES
indexable_live_connector_types = {
SearchSourceConnectorType.GOOGLE_CALENDAR_CONNECTOR,
SearchSourceConnectorType.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR,
SearchSourceConnectorType.GOOGLE_GMAIL_CONNECTOR,
SearchSourceConnectorType.COMPOSIO_GMAIL_CONNECTOR,
}
if (
connector.connector_type in LIVE_CONNECTOR_TYPES
and connector.connector_type not in indexable_live_connector_types
):
if connector.connector_type in LIVE_CONNECTOR_TYPES:
return {
"message": (
f"{connector.connector_type.value} uses real-time agent tools; "