docs: added docstrings to bdi_core and BeliefSetter behaviour
ref: N25B-197
This commit is contained in:
@@ -7,7 +7,10 @@ from control_backend.agents.bdi.behaviours.belief_setter import BeliefSetter
|
|||||||
|
|
||||||
class BDICore(BDIAgent):
|
class BDICore(BDIAgent):
|
||||||
"""
|
"""
|
||||||
TODO: docs
|
This is the Brain agent that does the belief inference with AgentSpeak.
|
||||||
|
This is a continous process that happens automatically in the background.
|
||||||
|
This class contains all the actions that can be called from AgentSpeak plans.
|
||||||
|
It has the BeliefSetter behaviour.
|
||||||
"""
|
"""
|
||||||
logger = logging.getLogger("BDI Core")
|
logger = logging.getLogger("BDI Core")
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,13 @@ from control_backend.core.config import settings
|
|||||||
|
|
||||||
class BeliefSetter(CyclicBehaviour):
|
class BeliefSetter(CyclicBehaviour):
|
||||||
"""
|
"""
|
||||||
TODO: docs
|
This is the behaviour that the BDI agent runs.
|
||||||
|
This behaviour waits for incoming message and processes it based on sender.
|
||||||
|
Currently, t only waits for messages containing beliefs from Belief Collector and adds these to its KB.
|
||||||
"""
|
"""
|
||||||
agent: BDIAgent
|
agent: BDIAgent
|
||||||
logger = logging.getLogger("BDI/Belief Setter")
|
logger = logging.getLogger("BDI/Belief Setter")
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
msg = await self.receive(timeout=0.1)
|
msg = await self.receive(timeout=0.1)
|
||||||
if msg:
|
if msg:
|
||||||
|
|||||||
Reference in New Issue
Block a user