Revert "refactor(chatter): 简化 action_message 的数据类型处理"
This reverts commit 540b162c04.
This commit is contained in:
committed by
Windpicker-owo
parent
62dac40c6a
commit
159ff11524
@@ -557,21 +557,21 @@ class ChatterPlanFilter:
|
|||||||
):
|
):
|
||||||
reasoning = f"LLM 返回了当前不可用的动作 '{action}'。原始理由: {reasoning}"
|
reasoning = f"LLM 返回了当前不可用的动作 '{action}'。原始理由: {reasoning}"
|
||||||
action = "no_action"
|
action = "no_action"
|
||||||
#from src.common.data_models.database_data_model import DatabaseMessages
|
from src.common.data_models.database_data_model import DatabaseMessages
|
||||||
|
|
||||||
#action_message_obj = None
|
action_message_obj = None
|
||||||
#if target_message_obj:
|
if target_message_obj:
|
||||||
#try:
|
try:
|
||||||
#action_message_obj = DatabaseMessages(**target_message_obj)
|
action_message_obj = DatabaseMessages(**target_message_obj)
|
||||||
#except Exception:
|
except Exception:
|
||||||
#logger.warning("无法将目标消息转换为DatabaseMessages对象")
|
logger.warning("无法将目标消息转换为DatabaseMessages对象")
|
||||||
|
|
||||||
parsed_actions.append(
|
parsed_actions.append(
|
||||||
ActionPlannerInfo(
|
ActionPlannerInfo(
|
||||||
action_type=action,
|
action_type=action,
|
||||||
reasoning=reasoning,
|
reasoning=reasoning,
|
||||||
action_data=action_data,
|
action_data=action_data,
|
||||||
action_message=target_message_obj,
|
action_message=action_message_obj,
|
||||||
available_actions=plan.available_actions,
|
available_actions=plan.available_actions,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user