🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-04-26 12:49:58 +00:00
parent 9469d605e2
commit c33dab0119
5 changed files with 9 additions and 6 deletions

View File

@@ -149,7 +149,9 @@ class ActionPlanner:
timestamp_mode="relative",
read_mark=0.0,
)
chat_history_text += f"\n--- 以下是 {observation_info.new_messages_count} 条新消息 ---\n{new_messages_str}"
chat_history_text += (
f"\n--- 以下是 {observation_info.new_messages_count} 条新消息 ---\n{new_messages_str}"
)
# 清理消息应该由调用者或 observation_info 内部逻辑处理,这里不再调用 clear
# if hasattr(observation_info, 'clear_unprocessed_messages'):
# observation_info.clear_unprocessed_messages()
@@ -302,4 +304,4 @@ end_conversation: 结束对话,对方长时间没回复或者当你觉得对
except Exception as e:
logger.error(f"规划行动时调用 LLM 或处理结果出错: {str(e)}")
return "wait", f"行动规划处理中发生错误,暂时等待: {str(e)}"
return "wait", f"行动规划处理中发生错误,暂时等待: {str(e)}"