This commit is contained in:
yumoqing 2026-03-13 15:51:00 +08:00
parent 190883ace6
commit fb4e1eac2c

View File

@ -250,7 +250,8 @@ class IndustrialSkillEngine:
skill_name = self.state["current_skill"] skill_name = self.state["current_skill"]
if skill_name not in self.registry: if skill_name not in self.registry:
raise Exception(f"技能名{skill_name}未注册") raise Exception(f"技能名{skill_name}未注册")
if context is None:
context = self.registry[skill_name].content
# 获取递归上下文 # 获取递归上下文
context = await self._get_expanded_context(skill_name, user_prompt, context=context) context = await self._get_expanded_context(skill_name, user_prompt, context=context)