Skip to main content

j_agent/
template.rs

1//! 模板资源加载
2//!
3//! 从编译时嵌入的资源中加载系统 prompt 模板。
4//! 使用 `include_str!` 替代 `rust-embed` 以减少依赖。
5
6/// Teammate system prompt 模板
7pub fn teammate_system_prompt_template() -> &'static str {
8    include_str!("../assets/teammate_system_prompt.md")
9}
10
11/// SubAgent system prompt 模板
12pub fn sub_agent_system_prompt_template() -> &'static str {
13    include_str!("../assets/sub_agent_system_prompt.md")
14}
15
16/// 默认系统提示词模板
17pub fn default_system_prompt() -> &'static str {
18    include_str!("../assets/system_prompt_default.md")
19}
20
21/// 默认记忆占位文件
22pub fn default_memory() -> &'static str {
23    include_str!("../assets/memory_default.md")
24}
25
26/// 默认灵魂占位文件
27pub fn default_soul() -> &'static str {
28    include_str!("../assets/soul_default.md")
29}
30
31/// 默认 AGENTS.md 模板
32pub fn default_agent_md() -> &'static str {
33    include_str!("../assets/agent_md_default.md")
34}