SurfSense/surfsense_backend/app/agents/shared/tools
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
..
mcp refactor(agents): group MCP tools into shared/tools/mcp/ subpackage 2026-06-04 20:35:38 +02:00
__init__.py refactor(agents): colocate KB-search tool with its sole consumer; fix report ImportError 2026-06-05 10:28:56 +02:00
catalog.py refactor(agents): delete orphaned shared/tools connectors 2026-06-04 19:55:31 +02:00
hitl.py docs(agents): refresh comments that referenced the deleted single-agent stack (bucket B6) 2026-06-04 13:47:10 +02:00
web_search.py refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +02:00