Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
This commit is contained in:
@@ -194,7 +194,7 @@ class PluginAction(BaseAction):
|
||||
|
||||
# 获取锚定消息(如果有)
|
||||
observations = self._services.get("observations", [])
|
||||
|
||||
|
||||
# 查找 ChattingObservation 实例
|
||||
chatting_observation = None
|
||||
for obs in observations:
|
||||
|
||||
@@ -226,14 +226,14 @@ class ActionPlanner(BasePlanner):
|
||||
action_data[key] = value
|
||||
|
||||
action_data["identity"] = self_info
|
||||
|
||||
|
||||
extra_info_block = "\n".join(extra_info)
|
||||
extra_info_block += f"\n{structured_info}"
|
||||
if extra_info or structured_info:
|
||||
extra_info_block = f"以下是一些额外的信息,现在请你阅读以下内容,进行决策\n{extra_info_block}\n以上是一些额外的信息,现在请你阅读以下内容,进行决策"
|
||||
else:
|
||||
extra_info_block = ""
|
||||
|
||||
|
||||
action_data["extra_info_block"] = extra_info_block
|
||||
|
||||
# 对于reply动作不需要额外处理,因为相关字段已经在上面的循环中添加到action_data
|
||||
@@ -272,9 +272,6 @@ class ActionPlanner(BasePlanner):
|
||||
)
|
||||
|
||||
action_result = {"action_type": action, "action_data": action_data, "reasoning": reasoning}
|
||||
|
||||
|
||||
|
||||
|
||||
plan_result = {
|
||||
"action_result": action_result,
|
||||
|
||||
Reference in New Issue
Block a user