feat(kokoro-flow): 添加 PyYAML 依赖并增强 kfc_reply 提示

添加 PyYAML 作为依赖,以支持未来在 Kokoro Flow Chatter 插件中基于 YAML 的配置和功能。

`kfc_reply` 动作的提示已更新,明确指示模型将其完整响应整合为单个动作调用,防止出现分散或多条回复。
This commit is contained in:
tt-P607
2025-12-01 20:14:33 +08:00
parent 048ce37c63
commit 8bb7f39641
3 changed files with 4 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ dependencies = [
"pymongo>=4.13.2",
"pymysql>=1.1.1",
"pypinyin>=0.54.0",
"PyYAML>=6.0",
"python-dateutil>=2.9.0.post0",
"python-dotenv>=1.1.1",
"python-igraph>=0.11.9",

View File

@@ -29,6 +29,7 @@ peewee
pyarrow
pydantic
pypinyin
PyYAML
python-dateutil
python-dotenv
python-igraph

View File

@@ -214,9 +214,9 @@ def build_actions_module(available_actions: Optional[dict[str, ActionInfo]] = No
def _get_default_actions_block() -> str:
"""获取默认的内置动作描述块"""
return """### `kfc_reply` - 发消息
发送文字回复。
发送文字回复。**注意:只能有一个 kfc_reply 动作,把你想说的话都写在一条消息里。**
```json
{"type": "kfc_reply", "content": "你要说的话"}
{"type": "kfc_reply", "content": "你要说的话,全部写在这里"}
```
### `poke_user` - 戳一戳