mirror of
https://github.com/MODSetter/SurfSense
synced 2026-06-21 13:44:09 +00:00
24b62a63b4
Recursive shared-folder rule: a shared/ must be shared by ALL siblings at its
level. The kernel (context, compaction, retry_after, web_search) was shared by
only 2 of the agents -- anonymous_chat + multi_agent_chat -- never by podcaster
or video_presentation. Those 2 are the "chat" category, so their shared code
belongs in that category's shared/, not the top-level one.
app/agents/anonymous_chat/ -> app/agents/chat/anonymous_chat/
app/agents/multi_agent_chat/ -> app/agents/chat/multi_agent_chat/
app/agents/shared/ -> app/agents/chat/shared/ (anon<->mac kernel)
Top-level app/agents/shared/ is gone: nothing was shared across all three
categories (chat / podcaster / video_presentation).
~289 import sites rewritten (app.agents.{anonymous_chat,multi_agent_chat,shared}
-> app.agents.chat.*); all moves are git renames (history preserved).
app/agents/ now: chat/, podcaster/, video_presentation/, runtime/.
10 lines
362 B
Python
10 lines
362 B
Python
"""Cross-package agent contracts.
|
|
|
|
Symbols here are intentionally framework-light (no LangGraph / deepagents
|
|
internals) so they can be imported from both ``app.agents.new_chat`` and
|
|
``app.agents.chat.multi_agent_chat`` without creating a circular dependency
|
|
between the two packages. See ``receipt.py`` for the rationale.
|
|
"""
|
|
|
|
from __future__ import annotations
|