AgentSpeak agents on A2A/ACL protocol.
Project description
A2A Agentspeak
AgentSpeak agents on A2A/ACL protocol. (Work in progress).
Features
- Run AgentSpeak agents on an A2A server.
- Describe agent card and skills in an interface file in a dedicated format.
- Targets that are not declared in the interface are private and ignored from incoming messages.
- Extension of the A2A protocol that supports tell, achieve, and ask performatives.
- Synchronous answers for ask messages (to consult a belief).
- Asynchronous answers for achieve messages (to request some actions and optionally answer later).
- Two repositories : one to keep track of running agents (hot repository for hot agents) and one to keep track of agents that can be run locally on demand (cold repository for cold agents).
- Hot agent repositories can be accessed by requested interface (formatted, see
samples/llm_req_manager_with_orchestrator_and_hot_repository) or by natural language (interpreted by a LLM, seesamples/llm_req_manager_with_orchestrator_and_repository_and_nl_selection). - Cold agent repositories can be accessed by interface (see
tests/ping_agent_on_cold_repo,tests/cold_agent_on_repo_with_holes, andtests/spawn). - Hot agent repositories can receive failure reports and degrade the reputation of failing agents.
That reputation is taken into account when selecting agents (see
samples/llm_req_manager_with_orchestrator_and_hot_repositoryandsamples/llm_req_manager_with_orchestrator_and_repository_and_nl_selection). - Configuration of agents with customized actions at init time (see
tests/customizable_robot,tests/action, andtests/cold_agent_on_repo_with_holes). - Different codecs can be used to encode/decode the content of the messages (AgentSpeak agents can encode the content of the message differently than Python agents or Java agents).
Examples and Documentation
Some examples are given in the samples and tests directories. This is the only source of documentation currently.
To run the simple example from samples/ping, first run run_receiver_agent.py , then run run_sender_agent.py .
That example does not require access to an LLM.
Requirements
This module relies on the A2A Protocol (package a2a-sdk), the A2A-ACL package (acl-a2a),
and python-agentspeak (package agentspeak).
Optional Requirements
To run the examples that use an LLM, you need:
- the package
mistralaiand set your MISTRAL_API_KEY in the environment, - the package
openaiand set your OPENAI_API_KEY in the environment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file a2a_agentspeak-0.0.11.tar.gz.
File metadata
- Download URL: a2a_agentspeak-0.0.11.tar.gz
- Upload date:
- Size: 67.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d70d52c947c3ccd0b70255bf8a2e1afe9107ab113eb2b09d3d2937dc8cacb860
|
|
| MD5 |
d0fa7667dee34852cc586d132f92c26d
|
|
| BLAKE2b-256 |
f7092796536aac6f7193bc4c86a8135a319aad4299740749f1290d2b5028a036
|
File details
Details for the file a2a_agentspeak-0.0.11-py3-none-any.whl.
File metadata
- Download URL: a2a_agentspeak-0.0.11-py3-none-any.whl
- Upload date:
- Size: 154.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
111b05f33b3633dd32a3b1d7653f39e947524e5c66ace055f82de70bff9eb7e5
|
|
| MD5 |
3e2d66cd8d1556a3bb5820c8ab4d8c85
|
|
| BLAKE2b-256 |
3dab4d9f8602b89f1fbcc3ce53b2356843bf38ef7612a0e384ee9b85acf19d4a
|