SurfSense/surfsense_backend/app/tasks/chat/streaming/context
CREDO23 c13beae1ce refactor(chat): add streaming/context/ for mentioned-docs and deep-agents todos
Extracts two pure context helpers used during input-state assembly:

* mentioned_docs.format_mentioned_surfsense_docs_as_context: renders the
  user's @-mentioned SurfSense docs into the LLM context block.
* deepagents_todos.extract_todos_from_deepagents: pulls the in-progress
  todo list from a deep-agents state snapshot for the title generator.

Add-only; existing call sites in stream_new_chat.py remain untouched
until cutover.
2026-05-25 21:48:08 +02:00
..
__init__.py refactor(chat): add streaming/context/ for mentioned-docs and deep-agents todos 2026-05-25 21:48:08 +02:00
deepagents_todos.py refactor(chat): add streaming/context/ for mentioned-docs and deep-agents todos 2026-05-25 21:48:08 +02:00
mentioned_docs.py refactor(chat): add streaming/context/ for mentioned-docs and deep-agents todos 2026-05-25 21:48:08 +02:00