SurfSense/surfsense_backend/app/tasks/chat/streaming/agent
CREDO23 04a76b163b citations: conversation-scoped registry with finalize-time [n] resolution
Add the checkpointed CitationRegistry (load/merge helpers + state field)
and a lightweight CitationStateMiddleware so subagents can register into
the same conversation registry. Resolve [n] -> [citation:<payload>] at
stream finalize from the registry, polymorphically by source type.
2026-06-25 15:26:25 +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: streamline auth context usage across chat and automation routes 2026-06-19 21:04:21 +05:30
event_loop.py citations: conversation-scoped registry with finalize-time [n] resolution 2026-06-25 15:26:25 +02:00