mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
Three live shared leaves discovered while taking stock after slice 7 (all are consumed by the multi-agent stack and/or live routes, not single-agent-only): - connector_searchable_types -> shared + shim (multi-agent factory uses it) - agent_cache -> shared + shim (multi-agent runtime/agent_cache uses it) - system_prompt + prompts/ (42 .md fragments) -> shared together + shim. Repointed composer's _PROMPTS_PACKAGE to app.agents.shared.prompts so importlib.resources fragment loading keeps working; system_prompt's relative ".prompts.composer" import is preserved by moving both as a unit. Each keeps a re-export shim for the frozen chat_deepagent. After this slice, new_chat/ holds only the frozen single-agent stack (chat_deepagent, subagents/, __init__) plus shims.
29 lines
895 B
Python
29 lines
895 B
Python
"""Backward-compatible shim.
|
|
|
|
Moved to ``app.agents.shared.system_prompt``. Re-exported here for the frozen
|
|
single-agent stack (``chat_deepagent``) until that stack is retired.
|
|
"""
|
|
|
|
from app.agents.shared.system_prompt import (
|
|
SURFSENSE_CITATION_INSTRUCTIONS,
|
|
SURFSENSE_NO_CITATION_INSTRUCTIONS,
|
|
SURFSENSE_SYSTEM_INSTRUCTIONS_TEMPLATE,
|
|
SURFSENSE_SYSTEM_PROMPT,
|
|
build_configurable_system_prompt,
|
|
build_surfsense_system_prompt,
|
|
compose_system_prompt,
|
|
detect_provider_variant,
|
|
get_default_system_instructions,
|
|
)
|
|
|
|
__all__ = [
|
|
"SURFSENSE_CITATION_INSTRUCTIONS",
|
|
"SURFSENSE_NO_CITATION_INSTRUCTIONS",
|
|
"SURFSENSE_SYSTEM_INSTRUCTIONS_TEMPLATE",
|
|
"SURFSENSE_SYSTEM_PROMPT",
|
|
"build_configurable_system_prompt",
|
|
"build_surfsense_system_prompt",
|
|
"compose_system_prompt",
|
|
"detect_provider_variant",
|
|
"get_default_system_instructions",
|
|
]
|