fix: incorrect receiver and incorrect belief
ref: N25B-300
This commit is contained in:
@@ -83,7 +83,7 @@ class BDICoreAgent(BaseAgent):
|
|||||||
self._add_belief(belief_name, args)
|
self._add_belief(belief_name, args)
|
||||||
|
|
||||||
if belief_name == "user_said":
|
if belief_name == "user_said":
|
||||||
self._add_belief("user_said")
|
self._add_belief("new_message")
|
||||||
|
|
||||||
def _add_belief(self, belief_name: str, arguments: Iterable[str] = []):
|
def _add_belief(self, belief_name: str, arguments: Iterable[str] = []):
|
||||||
args = (agentspeak.Literal(arg) for arg in arguments)
|
args = (agentspeak.Literal(arg) for arg in arguments)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class LLMAgent(BaseAgent):
|
|||||||
Sends a response message back to the BDI Core Agent.
|
Sends a response message back to the BDI Core Agent.
|
||||||
"""
|
"""
|
||||||
reply = InternalMessage(
|
reply = InternalMessage(
|
||||||
to=settings.agent_settings.bdi_core_name + "@" + settings.agent_settings.host,
|
to=settings.agent_settings.bdi_core_name,
|
||||||
sender=self.name,
|
sender=self.name,
|
||||||
body=msg,
|
body=msg,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user