fix: messages are None when no message is received

ref: N25B-265
This commit is contained in:
Twirre Meulenbelt
2025-11-12 11:47:59 +01:00
parent 781a05328f
commit b785493b97
6 changed files with 17 additions and 7 deletions

View File

@@ -30,7 +30,9 @@ class LLMAgent(BaseAgent):
Receives SPADE messages and processes only those originating from the
configured BDI agent.
"""
msg = await self.receive()
msg = await self.receive(timeout=1)
if not msg:
return
sender = msg.sender.node
self.agent.logger.debug(