import logging

from spade.agent import Agent

from .behaviours.continuous_collect import ContinuousBeliefCollector

logger = logging.getLogger(__name__)


class BeliefCollectorAgent(Agent):
    async def setup(self):
        logger.info("BeliefCollectorAgent starting (%s)", self.jid)
        # Attach the continuous collector behaviour (listens and forwards to BDI)
        self.add_behaviour(ContinuousBeliefCollector())
        logger.info("BeliefCollectorAgent ready.")
