fix: default case for plans

ref: N25B-376
This commit is contained in:
2025-12-17 16:20:37 +01:00
parent 1d36d2e089
commit 28262eb27e

View File

@@ -214,6 +214,9 @@ class AgentSpeakGenerator:
body_actions.append(ActionLiteral(f"+achieved_{goal_slug}"))
asl.plans.append(Plan(trigger=GoalLiteral(goal_slug), context=context, body=body_actions))
asl.plans.append(
Plan(trigger=GoalLiteral(goal_slug), context=[], body=[ActionLiteral("true")])
)
prev_sub = None
for sub_goal in sub_goals_to_process: