feat: make the pipeline work with Program and AgentSpeak

ref: N25B-429
This commit is contained in:
Twirre Meulenbelt
2026-01-06 15:26:44 +01:00
parent a357b6990b
commit 3406e9ac2f
7 changed files with 88 additions and 38 deletions

View File

@@ -101,7 +101,7 @@ class BDIBeliefCollectorAgent(BaseAgent):
:return: A Belief object if the input is valid or None.
"""
try:
return Belief(name=name, arguments=arguments)
return Belief(name=name, arguments=arguments, replace=name == "user_said")
except ValidationError:
return None