code: def set_agent(self, agent):
          
          self.agent = agent
          self.queue = asyncio.Queue(loop=self.agent.loop)
          self.presence = agent.presence
          self.web = agent.web
docs: Links behaviour with its owner agent
  
          Args:
            agent (spade.agent.Agent): the agent who owns the behaviour