SurfSense/surfsense_backend/app/agents/chat/runtime
CREDO23 afc555d971 feat(chat): resolve and render @-mentioned chats as read-only context
Add the referenced_chat_context slice: models for the data shapes, a
fail-closed resolver that fetches mentioned threads and their visible
turns under the same access rules as thread search, and a transcript
renderer that emits a budgeted <referenced_chat_context> block. When a
chat exceeds the per-reference character budget, recent turns are kept
and any leftover budget is filled with the overflowing turn's tail, with
truncation markers signalling the cut.
2026-06-23 17:04:27 +02:00
..
referenced_chat_context feat(chat): resolve and render @-mentioned chats as read-only context 2026-06-23 17:04:27 +02:00
__init__.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
checkpointer.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
errors.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
llm_config.py chore: ran linting 2026-06-13 21:59:35 +05:30
mention_resolver.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
path_resolver.py refactor(agents): consolidate chat runtime infra under chat/runtime 2026-06-05 13:19:24 +02:00
prompt_caching.py docs(agents): tighten docstrings and comments across agent module 2026-06-05 17:39:38 +02:00