better:优化normal的 prompt

This commit is contained in:
SengokuCola
2025-06-08 21:29:20 +08:00
parent d45ef07ea8
commit 52cb3ed273
6 changed files with 643 additions and 48 deletions

View File

@@ -25,7 +25,8 @@ class ReplyAction(BaseAction):
action_name: str = "reply"
action_description: str = "当你想要参与回复或者聊天"
action_parameters: dict[str:str] = {
"target": "如果你要明确回复特定某人的某句话请在target参数中指定那句话的原始文本(非必须,仅文本,不包含发送者)(可选)",
"reply_to": "如果明确回复某个人的发言请在reply_to参数中指定,格式:(用户名:发言内容如果不是reply_to的值设为none",
"emoji": "如果你想用表情包辅助你的回答请在emoji参数中用文字描述你想要发送的表情包内容如果没有值设为空",
}
action_require: list[str] = [
"你想要闲聊或者随便附和",

View File

@@ -181,7 +181,7 @@ class ActionPlanner(BasePlanner):
prompt = f"{prompt}"
llm_content, (reasoning_content, _) = await self.planner_llm.generate_response_async(prompt=prompt)
logger.debug(f"{self.log_prefix}规划器原始提示词: {prompt}")
logger.info(f"{self.log_prefix}规划器原始提示词: {prompt}")
logger.info(f"{self.log_prefix}规划器原始响应: {llm_content}")
logger.info(f"{self.log_prefix}规划器推理: {reasoning_content}")