This commit is contained in:
9
backend/app/templates/__init__.py
Normal file
9
backend/app/templates/__init__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""
|
||||
模板目录 - 存放可编辑的输出模板
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
TEMPLATES_DIR = Path(__file__).parent
|
||||
|
||||
__all__ = ["TEMPLATES_DIR"]
|
||||
26
backend/app/templates/conversation_summary.md
Normal file
26
backend/app/templates/conversation_summary.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# 对话摘要
|
||||
|
||||
**时间**: {{ timestamp }}
|
||||
{% if participants %}
|
||||
**参与者**: {{ participants }}
|
||||
{% endif %}
|
||||
|
||||
---
|
||||
|
||||
## 📋 对话要点
|
||||
|
||||
{{ bullet_list(points) }}
|
||||
|
||||
---
|
||||
|
||||
## 📝 总结
|
||||
|
||||
{{ summary }}
|
||||
|
||||
---
|
||||
|
||||
{% if next_steps %}
|
||||
## ➡️ 下一步
|
||||
|
||||
{{ bullet_list(next_steps) }}
|
||||
{% endif %}
|
||||
21
backend/app/templates/error_notification.md
Normal file
21
backend/app/templates/error_notification.md
Normal file
@@ -0,0 +1,21 @@
|
||||
## ⚠️ 操作失败
|
||||
|
||||
**错误类型**: {{ error_type }}
|
||||
|
||||
{% if error_message %}
|
||||
**错误详情**: {{ error_message }}
|
||||
{% endif %}
|
||||
|
||||
---
|
||||
|
||||
### 💡 建议操作
|
||||
|
||||
{{ suggestions }}
|
||||
|
||||
---
|
||||
|
||||
{% if retry_count %}
|
||||
> 已重试 {{ retry_count }} {% if max_retries %}/ 最多 {{ max_retries }} 次{% endif %}
|
||||
{% endif %}
|
||||
|
||||
*如果问题持续存在,请联系管理员或稍后重试*
|
||||
48
backend/app/templates/knowledge_summary.md
Normal file
48
backend/app/templates/knowledge_summary.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# 📚 知识总结
|
||||
|
||||
**主题**: {{ topic }}
|
||||
**生成时间**: {{ timestamp }}
|
||||
|
||||
---
|
||||
|
||||
## 📋 内容概览
|
||||
|
||||
{{ summary }}
|
||||
|
||||
---
|
||||
|
||||
{% if key_points %}
|
||||
## 🔑 关键要点
|
||||
|
||||
{% for point in key_points %}
|
||||
### {{ loop.index }}. {{ point.title }}
|
||||
|
||||
{{ point.description }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
---
|
||||
|
||||
{% if table_data %}
|
||||
## 📊 数据表格
|
||||
|
||||
{{ table }}
|
||||
{% endif %}
|
||||
|
||||
---
|
||||
|
||||
{% if sources %}
|
||||
## 📖 参考来源
|
||||
|
||||
{% for source in sources %}
|
||||
- [{{ source.title }}]({{ source.url }})
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
---
|
||||
|
||||
{% if next_steps %}
|
||||
## ➡️ 后续建议
|
||||
|
||||
{{ suggestions }}
|
||||
{% endif %}
|
||||
24
backend/app/templates/tool_result.md
Normal file
24
backend/app/templates/tool_result.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# 工具执行结果
|
||||
|
||||
**工具**: {{ tool_name }}
|
||||
**状态**: {{ status }}
|
||||
|
||||
---
|
||||
|
||||
{{ content }}
|
||||
|
||||
---
|
||||
|
||||
{% if metadata %}
|
||||
### 📊 执行信息
|
||||
|
||||
| 项目 | 值 |
|
||||
|------|-----|
|
||||
{% for key, value in metadata.items() %}
|
||||
| {{ key }} | {{ value }} |
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if duration %}
|
||||
*执行耗时: {{ duration }}ms*
|
||||
{% endif %}
|
||||
28
backend/app/templates/web_search_result.md
Normal file
28
backend/app/templates/web_search_result.md
Normal file
@@ -0,0 +1,28 @@
|
||||
## 🔍 搜索结果
|
||||
|
||||
{% if query %}
|
||||
**查询**: {{ query }}
|
||||
{% endif %}
|
||||
|
||||
{% if result_count %}
|
||||
找到 {{ result_count }} 条相关结果
|
||||
{% endif %}
|
||||
|
||||
---
|
||||
|
||||
{% for item in results %}
|
||||
### [{{ loop.index }}] {{ item.title }}
|
||||
|
||||
- **来源**: [{{ item.url }}]({{ item.url }})
|
||||
- **摘要**: {{ item.snippet }}
|
||||
{% if item.source %}
|
||||
- **来源网站**: {{ item.source }}
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
---
|
||||
|
||||
{% if citation_note %}
|
||||
{{ citation_note }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user