checker也要处理

This commit is contained in:
Bakadax
2025-04-26 20:34:31 +08:00
parent d55043a8a5
commit 6f7074fbb8
3 changed files with 4 additions and 12 deletions

View File

@@ -175,7 +175,7 @@ class ReplyGenerator:
return "抱歉,我现在有点混乱,让我重新思考一下..."
async def check_reply(
self, reply: str, goal: str, chat_history: List[Dict[str, Any]], retry_count: int = 0
self, reply: str, goal: str, chat_history: List[Dict[str, Any]], chat_history_str: str, retry_count: int = 0
) -> Tuple[bool, str, bool]:
"""检查回复是否合适
@@ -187,4 +187,4 @@ class ReplyGenerator:
Returns:
Tuple[bool, str, bool]: (是否合适, 原因, 是否需要重新规划)
"""
return await self.reply_checker.check(reply, goal, chat_history, retry_count)
return await self.reply_checker.check(reply, goal, chat_history, chat_history_str, retry_count)