diff --git a/skillagent/skillengine.py b/skillagent/skillengine.py index a3a3506..73e3799 100644 --- a/skillagent/skillengine.py +++ b/skillagent/skillengine.py @@ -250,7 +250,8 @@ class IndustrialSkillEngine: skill_name = self.state["current_skill"] if skill_name not in self.registry: 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)