SurfSense/surfsense_backend/app/agents/multi_agent_chat/subagents
CREDO23 64512c604d refactor(agents): colocate gmail + calendar connector tools into subagent slices
Gmail and Calendar are handled together because both Google connectors share
the _build_credentials helper that lived in shared/tools/gmail.

- relocate the gmail helpers (_get_token_encryption, _build_credentials,
  _gmail_headers, _format_gmail_summary) into the gmail subagent slice
  (tools/_helpers.py); repoint gmail search_emails/read_email to it.
- calendar search_events now imports _build_credentials from the gmail slice
  (preserving the existing cross-connector Google-auth dependency).
- repoint both dead tools/__init__ shims at the live local impls.
- fix tests/e2e native_google fake: it patched the dead shared
  google_calendar.*.build paths; point it at the live subagent calendar
  modules (which actually import googleapiclient build).
- delete dead shared/tools/{gmail,google_calendar} twins.

shared/tools now has zero connector dirs. agents unit suite green (942).
2026-06-04 20:09:37 +02:00
..
builtins refactor(agents): colocate middleware into vertical slices 2026-06-04 18:13:47 +02:00
connectors refactor(agents): colocate gmail + calendar connector tools into subagent slices 2026-06-04 20:09:37 +02:00
mcp_tools refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +02:00
shared refactor(agents): colocate middleware into vertical slices 2026-06-04 18:13:47 +02:00
__init__.py Rename package: multi_agent_chat 2026-05-04 21:57:05 +02:00
registry.py multi_agent_chat/loader: MCP tools as flat list[BaseTool] per agent 2026-05-14 20:10:11 +02:00