mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-07 14:52:39 +02:00
Add connector routing entries and per-subagent connector token map.
This commit is contained in:
parent
2bce2a2f55
commit
eefdd1d7f0
1 changed files with 26 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
"""Map connector type strings to the agent route key used for tools and MCP slices."""
|
"""Connector-type to subagent name; subagent name to availability tokens for build_subagents."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
|
@ -15,4 +15,29 @@ CONNECTOR_TYPE_TO_CONNECTOR_AGENT_MAPS: dict[str, str] = {
|
||||||
"CLICKUP_CONNECTOR": "clickup",
|
"CLICKUP_CONNECTOR": "clickup",
|
||||||
"SLACK_CONNECTOR": "slack",
|
"SLACK_CONNECTOR": "slack",
|
||||||
"AIRTABLE_CONNECTOR": "airtable",
|
"AIRTABLE_CONNECTOR": "airtable",
|
||||||
|
"NOTION_CONNECTOR": "notion",
|
||||||
|
"CONFLUENCE_CONNECTOR": "confluence",
|
||||||
|
"GOOGLE_DRIVE_CONNECTOR": "google_drive",
|
||||||
|
"COMPOSIO_GOOGLE_DRIVE_CONNECTOR": "google_drive",
|
||||||
|
"DROPBOX_CONNECTOR": "dropbox",
|
||||||
|
"ONEDRIVE_CONNECTOR": "onedrive",
|
||||||
|
}
|
||||||
|
|
||||||
|
SUBAGENT_TO_REQUIRED_CONNECTOR_MAP: dict[str, frozenset[str]] = {
|
||||||
|
"deliverables": frozenset(),
|
||||||
|
"airtable": frozenset({"AIRTABLE_CONNECTOR"}),
|
||||||
|
"calendar": frozenset({"GOOGLE_CALENDAR_CONNECTOR"}),
|
||||||
|
"clickup": frozenset({"CLICKUP_CONNECTOR"}),
|
||||||
|
"confluence": frozenset({"CONFLUENCE_CONNECTOR"}),
|
||||||
|
"discord": frozenset({"DISCORD_CONNECTOR"}),
|
||||||
|
"dropbox": frozenset({"DROPBOX_FILE"}),
|
||||||
|
"gmail": frozenset({"GOOGLE_GMAIL_CONNECTOR"}),
|
||||||
|
"google_drive": frozenset({"GOOGLE_DRIVE_FILE"}),
|
||||||
|
"jira": frozenset({"JIRA_CONNECTOR"}),
|
||||||
|
"linear": frozenset({"LINEAR_CONNECTOR"}),
|
||||||
|
"luma": frozenset({"LUMA_CONNECTOR"}),
|
||||||
|
"notion": frozenset({"NOTION_CONNECTOR"}),
|
||||||
|
"onedrive": frozenset({"ONEDRIVE_FILE"}),
|
||||||
|
"slack": frozenset({"SLACK_CONNECTOR"}),
|
||||||
|
"teams": frozenset({"TEAMS_CONNECTOR"}),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue