SurfSense/surfsense_backend/tests/unit/agents/new_chat/tools
CREDO23 8d0090c6a1 refactor(agents): delete deliverable dead twins in shared/tools; fix live image api_base bug
The deliverables subagent runs its own generate_image/podcast/report/resume/
video_presentation (via tools/index.py); the shared/tools copies had zero
production importers — classic dead twins. Removed them so deliverable tools
live only in their vertical slice.

While repointing the 2 stranded unit tests at the LIVE deliverables modules,
found the OpenRouter empty-api_base defense (resolve_api_base) existed ONLY in
the dead shared generate_image, never propagated to the live multi-agent copy.
Ported the fix into deliverables/tools/generate_image.py (both the global-config
and user-DB-config branches) so an empty api_base no longer falls through to
LiteLLM's global api_base (Azure) and 404s.

Tests now exercise the live Command/receipt-returning tools (invoke the raw
coroutine with a hand-built ToolRuntime; resume progress events neutralized).
2026-06-04 20:30:30 +02:00
..
test_mcp_tools_cache.py refactor(agents): move tools package to app/agents/shared (slice 6) 2026-06-04 13:11:56 +02:00
test_resume_page_limits.py refactor(agents): delete deliverable dead twins in shared/tools; fix live image api_base bug 2026-06-04 20:30:30 +02:00
test_update_memory_scope.py feat: add memory document model and parsing functionality for markdown handling 2026-05-20 13:20:05 +05:30