feat: add recursive goal mapping to UserInterruptAgent #46
@@ -252,8 +252,6 @@ class UserInterruptAgent(BaseAgent):
|
|||||||
self._goal_map[str(goal.id)] = slug
|
self._goal_map[str(goal.id)] = slug
|
||||||
self._goal_reverse_map[slug] = str(goal.id)
|
self._goal_reverse_map[slug] = str(goal.id)
|
||||||
|
|
||||||
# Recursively check steps for subgoals
|
|
||||||
if goal.plan and goal.plan.steps:
|
|
||||||
for step in goal.plan.steps:
|
for step in goal.plan.steps:
|
||||||
if isinstance(step, Goal):
|
if isinstance(step, Goal):
|
||||||
_register_goal(step)
|
_register_goal(step)
|
||||||
|
|||||||
Reference in New Issue
Block a user