SurfSense/surfsense_backend/app/tasks/chat/streaming/agent
CREDO23 94bc827252 refactor(chat): add streaming/agent/ package with build_main_agent_for_thread
Extracts the agent-construction wrapper that the chat streamers call to
materialize the LangGraph agent for a given thread. Centralizes how we
pass the agent factory plus checkpointer, runtime context, and the
in-memory content builder.

Add-only; pre-existing inline equivalent in stream_new_chat.py stays
until cutover.
2026-05-25 21:48:20 +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(chat): add streaming/agent/ package with build_main_agent_for_thread 2026-05-25 21:48:20 +02:00