SurfSense/surfsense_backend/app/tasks/chat/streaming/agent
CREDO23 0081b627e9 refactor(agents): move kb_persistence middleware into main_agent (owner)
The KB-persistence impl lived in shared/middleware/ but no subagent uses it --
consumers are the main_agent builder and the boundary event loop. Colocate with
its owner using the folder-per-middleware shape; __init__ re-exports the public
surface. Tests that reached module internals now alias the .middleware submodule.

  main_agent/middleware/kb_persistence.py -> kb_persistence/builder.py
  shared/middleware/kb_persistence.py     -> kb_persistence/middleware.py
2026-06-05 14:11:55 +02:00
..
__init__.py refactor(chat): add streaming/agent/ package with build_main_agent_for_thread 2026-05-25 21:48:20 +02:00
builder.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
event_loop.py refactor(agents): move kb_persistence middleware into main_agent (owner) 2026-06-05 14:11:55 +02:00