docs(character): 更新默认预设与工具调用说明#24
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR updates character plugin documentation to introduce a new tool-calling preset variant alongside the existing standard preset. Changes include reorganized message format guidance, revised Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces an experimental 'Tool Call' reply mode and a corresponding preset, while updating the standard preset to use XML-tag-based logic for next_reply and expanding documentation for message tags. Feedback identifies a logical conflict in the next_reply examples where mutually exclusive conditions are combined using AND logic, which should be corrected. Additionally, redundant XML format definitions in the tool-call preset should be removed to prevent model confusion, as these structures are already defined by tool parameters.
| <next_reply group="wait-user" type="message_from_user" user_id="" /> | ||
| <next_reply group="wait-user" type="no_message_from_user" user_id="all" seconds="60" /> |
There was a problem hiding this comment.
这里的示例使用了相同的 group="wait-user"。根据第 219 行的说明,“相同 group 按 AND 组合”,这意味着触发条件必须同时满足“收到指定用户消息”且“连续 60 秒无人发言”。由于这两个条件在逻辑上很难同时满足(收到消息的瞬间通常不满足“无人发言”条件),这可能导致预设无法按预期触发。如果意图是“收到消息或超时触发(OR 逻辑)”,建议移除 group 属性或使用不同的 group 名称。
<next_reply type="message_from_user" user_id="" />
<next_reply type="no_message_from_user" user_id="all" seconds="60" />| # <status></status>格式 | ||
| - 模板: | ||
| <status> | ||
| 心情:"开心" | ||
| 状态:"正在闲聊" | ||
| 记忆:"" | ||
| 动作:"拿起手机聊天" | ||
| </status> | ||
| - 内容解释: | ||
| - 心情:如平静、愉悦、烦恼等,影响回复的情感倾向 | ||
| - 状态:当前的具体情况描述 | ||
| - 记忆:关于最近几个小时聊天记录的简要记录,每次回复时叠加之前的记忆,用于替代工具中的短期记忆,中、长期记忆请使用工具。不超过120字,如果超过120字,请裁剪掉之前一部分旧的无关紧要的内容 | ||
| - 动作:当前正在进行的活动 | ||
| - 注意:根据这些因素调整回复的语气和内容,保持角色的一致性和真实感,使用中文 | ||
|
|
||
| # <think></think>格式 | ||
| 示例: | ||
| - 1: | ||
| <think> | ||
| …… | ||
| </think> | ||
| - 2: | ||
| <think> | ||
| …… | ||
| </think> | ||
| - 3: | ||
| <think> | ||
| …… | ||
| </think> |
Summary
chatluna-character当前默认预设模板,补齐新版next_reply、多媒体消息格式和相关注释说明。experimentalToolCallReply配置项。Summary by CodeRabbit
New Features
experimentalToolCallReplyconfiguration option to enable experimental tool-calling reply flowDocumentation
next_replytag-based schema format