SurfSense/surfsense_backend/app/agents/multi_agent_chat/subagents
CREDO23 2db4ad479e refactor(agents): colocate KB-search tool with its sole consumer; fix report ImportError
shared/tools/knowledge_base.py had exactly one production consumer: the
report deliverable, which imported it via `from .knowledge_base import ...`
-- a sibling path that did not exist, so the report KB-search path would
raise ImportError at runtime.

Move the module next to report.py (subagents/builtins/deliverables/tools/)
which makes that relative import valid, and move its only dependency
(shared/utils.py date helpers) to multi_agent_chat/shared/date_filters.py,
shared between the KB tool and the knowledge_search middleware.

Drop the now-unused knowledge-base re-exports from the shared/tools barrel
and repoint the integration tests. import-all + error-contract stay green.
2026-06-05 10:28:56 +02:00
..
builtins refactor(agents): colocate KB-search tool with its sole consumer; fix report ImportError 2026-06-05 10:28:56 +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): group MCP tools into shared/tools/mcp/ subpackage 2026-06-04 20:35:38 +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