fix:修复action_info未正确获取

This commit is contained in:
SengokuCola
2025-07-13 18:42:47 +08:00
parent 18d412d280
commit 7d193fe37b
3 changed files with 6 additions and 7 deletions

View File

@@ -316,7 +316,7 @@ class ActionModifier:
async def _llm_judge_action(
self,
action_name: str,
action_info: Dict[str, Any],
action_info: ActionInfo,
chat_content: str = "",
) -> bool:
"""
@@ -335,9 +335,9 @@ class ActionModifier:
try:
# 构建判定提示词
action_description = action_info.get("description", "")
action_require = action_info.get("require", [])
custom_prompt = action_info.get("llm_judge_prompt", "")
action_description = action_info.description
action_require = action_info.action_require
custom_prompt = action_info.llm_judge_prompt
# 构建基础判定提示词
base_prompt = f"""