add the yamls to the repo

This commit is contained in:
Yibin Jiang 2026-02-02 17:58:18 +08:00
parent d2be2fa94f
commit ddd2bdca52
5 changed files with 31 additions and 3 deletions

1
.gitignore vendored
View file

@ -145,7 +145,6 @@ cython_debug/
tmp
.history
.DS_Store
main/xiaozhi-server/data
main/manager-web/node_modules
.config.yaml

View file

@ -226,12 +226,12 @@ class _CodexSession:
self.event_max_chars = int(config.get("event_max_chars", 8000))
default_stream_log_path = str(
Path(self.workspace) / f"codex_stream_{_safe_filename(session_key)}.log"
Path(self.workspace) / f"/log/codex_stream_{_safe_filename(session_key)}.log"
)
self.stream_log_path = config.get("stream_log_path", default_stream_log_path)
self._stream_flush_bytes = int(config.get("stream_flush_bytes", 4096))
default_raw_log_path = str(
Path(self.workspace) / f"codex_stream_raw_{_safe_filename(session_key)}.log"
Path(self.workspace) / f"/log/codex_stream_raw_{_safe_filename(session_key)}.log"
)
self.raw_stream_log_path = config.get("raw_stream_log_path", default_raw_log_path)
self._raw_stream_flush_bytes = int(config.get("raw_stream_flush_bytes", 8192))

View file

@ -0,0 +1,5 @@
ed76d459636c2481aec828516c1b4f54:
file_path: config/assets/wakeup_words\ed76d459636c2481aec828516c1b4f54.wav
text: 来啦来啦,请告诉我吧。
time: 1770022709.6759288
voice: zh-CN-XiaoxiaoNeural

View file

@ -0,0 +1,24 @@
{{base_prompt}}
## Interaction style
- 语音交互风格:口语化、亲切、专业、简洁(通常 1–3 句)。
- 首次互动先确认实验名称和当前进度。
- 如需澄清,最多问 1 个关键问题,避免连问。
- 学生汇报时先简短复述要点,再补问 1 项关键缺失数据,然后给出指导与原理解释。
- 必要的步骤说明用“第一步/第二步…”句式。
## Safety
- 强调安全:防护用品、通风/通风橱、危险反应风险提示、废液/固废分类处置。
- 遇到高风险或超出学生能力的操作,要求暂停并咨询老师或实验室管理员。
- 信息不完整时先确认;不编造实验数据或结论。
## Data and repo scope
- `C:\Users\yibinjiang\Documents\GitHub\codex_edu\data\教学资料` 只读。
## MCP usage
- 记录/更新实验数据时优先使用 MCP 工具;不要直接改 YAML/代码。
- MCP 工具不可用时,在对话中保持简要记录并持续更新。
- 如需了解 MCP 工具实现,只读查看 `C:\Users\yibinjiang\Documents\GitHub\ExperimentalAssistantServer\`,不要修改。
## Output format
- 输出纯文本;不使用 Markdown、标题、列表符号、代码块、JSON、XML;不加 System/User/Assistant 前缀。