SurfSense/surfsense_backend/tests/unit/agents
CREDO23 003924062d refactor(agents): split tool registry into pure-data catalog, decouple connectors
Replace the connector-coupled BUILTIN_TOOLS registry with a pure-data
catalog so shared/tools no longer imports any connector module, making the
connector packages independently deletable.

- add shared/tools/catalog.py (ToolMetadata + TOOL_CATALOG, 41 tools, no imports)
- point GET /agent/tools (the only live consumer) at the catalog
- relocate ToolDefinition into action_log middleware (its sole consumer);
  drop the inert tool_definitions wiring (no tool defines reverse)
- delete shared/tools/registry.py: connector imports, dead factories,
  dead get_connector_gated_tools, and BUILTIN_TOOLS
- drop stale dedup-propagation test (path removed in C1) + refresh docstrings

import-all guardrail + agents unit suite green (987 passed).
2026-06-04 19:43:50 +02:00
..
multi_agent_chat refactor(agents): colocate middleware into vertical slices 2026-06-04 18:13:47 +02:00
new_chat refactor(agents): split tool registry into pure-data catalog, decouple connectors 2026-06-04 19:43:50 +02:00
__init__.py feat: updated agent harness 2026-04-28 09:22:19 -07:00
test_import_all.py test: add agent refactor guardrail suite 2026-06-04 11:44:23 +02:00