feat: trigger name and trigger checks on belief update

ref: N25B-429
This commit is contained in:
2026-01-08 14:04:44 +01:00
parent 4d0ba69443
commit 133019a928
2 changed files with 8 additions and 1 deletions

View File

@@ -221,6 +221,14 @@ class BDICoreAgent(BaseAgent):
agentspeak.runtime.Intention(),
)
# Check triggers
self.bdi_agent.call(
agentspeak.Trigger.addition,
agentspeak.GoalType.achievement,
agentspeak.Literal("check_triggers"),
agentspeak.runtime.Intention(),
)
self._wake_bdi_loop.set()
self.logger.debug(f"Added belief {self.format_belief_string(name, args)}")

View File

@@ -180,7 +180,6 @@ class Trigger(ProgramElement):
:ivar plan: The plan to execute.
"""
name: str = ""
condition: Belief
plan: Plan