SurfSense/surfsense_backend/tests/unit/agents
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
..
multi_agent_chat refactor(agents): colocate middleware into vertical slices 2026-06-04 18:13:47 +02:00
new_chat refactor(agents): delete deliverable dead twins in shared/tools; fix live image api_base bug 2026-06-04 20:30:30 +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