feat: added extra endpoint for norm pings

also made sure that you cannot skip phase on end phase

ref: N25B-400
This commit is contained in:
Pim Hutting
2026-01-16 14:28:27 +01:00
parent 041fc4ab6e
commit 6d03ba8a41
3 changed files with 56 additions and 14 deletions

View File

@@ -424,6 +424,16 @@ class AgentSpeakGenerator:
)
)
# Force phase transition fallback
self._asp.plans.append(
AstPlan(
TriggerType.ADDED_GOAL,
AstLiteral("force_transition_phase"),
[],
[AstStatement(StatementType.EMPTY, AstLiteral("true"))],
)
)
@singledispatchmethod
def _astify(self, element: ProgramElement) -> AstExpression:
raise NotImplementedError(f"Cannot convert element {element} to an AgentSpeak expression.")