spade_bdi package
Submodules
spade_bdi.bdi module
- class spade_bdi.bdi.BDIAgent(jid: str, password: str, asl: str, actions=None, *args, **kwargs)[source]
Bases:
Agent- add_behaviour(behaviour, template=None)[source]
Adds and starts a behaviour to the agent. If template is not None it is used to match new messages and deliver them to the behaviour.
- Args:
behaviour (Type[spade.behaviour.CyclicBehaviour]): the behaviour to be started template (spade.template.Template, optional): the template to match messages with (Default value = None)
- behaviours: list
- client: XMPPClient | None
- container
- jid
- loop
- password
- presence: PresenceManager | None
- traces
- verify_security
- web
- xmpp_port
spade_bdi.bdi_behaviour module
- class spade_bdi.bdi_behaviour.BDIBehaviour[source]
Bases:
CyclicBehaviour- agent
- get_belief(key: str, source=False)[source]
Get an agent’s existing belief. The first belief matching <key> is returned. Keep <source> False to strip source.
- get_belief_value(key: str)[source]
Get an agent’s existing value or values of the <key> belief. The first belief matching <key> is returned
- is_running
- on_end
- on_start
- presence
- queue
- template
- web