Spade-BDI
Create hybrid agents with a BDI layer for the SPADE MAS Platform.
Free software: MIT License
Documentation: https://spade-bdi.readthedocs.io.
Features
Create agents that parse and execute AgentSpeak ASL files.
Manage beliefs and goals from Python or AgentSpeak.
Add custom actions and functions.
Exchange beliefs, goals and plans using tell, untell, achieve, unachieve, tellHow, untellHow and askHow.
Handle structured message arguments and share matching plans between agents.
Only exchange plans with trusted agents: receiving a plan can change an agent’s behaviour.
Installing SPADE-BDI
SPADE-BDI supports Python 3.10 through 3.14 and requires an XMPP server. Install the latest published release with:
pip install spade_bdi
Example
Create a basic.asl file:
!start. +!start <- +car(red).
Then start the agent with credentials for your XMPP server:
import asyncio
import getpass
import spade
from spade_bdi.bdi import BDIAgent
async def main():
server = input("XMPP server: ")
password = getpass.getpass("Password: ")
agent = BDIAgent(f"basicagent@{server}", password, "basic.asl")
await agent.start()
try:
await asyncio.sleep(1)
print(agent.bdi.get_beliefs())
finally:
await agent.stop()
if __name__ == "__main__":
spade.run(main())
See the examples and documentation for messaging, custom actions and further examples.
Acknowledgements
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Metadata
Release files for spade_bdi 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spade_bdi-0.3.4.tar.gz | 29.4 kB | Without provenance | Details for spade_bdi-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spade_bdi-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for spade_bdi-0.3.4-py3-none-any.whl |
Total release size: 39.2 kB
Release files / spade_bdi-0.3.4.tar.gz
| Download URL | spade_bdi-0.3.4.tar.gz |
|---|---|
| Size | 29.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7fe629437d4291573b971995dfe3e6ea7842a0171eca40ca0c8eb4e44cabb64
|
|
BLAKE2b-256 checksum How to use checksums |
23e4f84a4140bebdc74e297c843a7021e1f18bb0993d6b6f735dead03d0e8807
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / spade_bdi-0.3.4-py3-none-any.whl
| Download URL | spade_bdi-0.3.4-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cf670cac0acc44ad8c9e09da848bf6b1bbed9d096698361a2a608d8b5c970e4
|
|
BLAKE2b-256 checksum How to use checksums |
472c9fff89081077e5f48190d55e531d77f1052d7bf600e2c1e25b8ee858ff8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for spade_bdi 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.