Skip to main content

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.
  • Relies on A2A-ACL protocol extension 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).
  • (Temporary) 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).
  • (Temporary) 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, see samples/llm_req_manager_with_orchestrator_and_repository_and_nl_selection).
  • (Temporary) Cold agent repositories can be accessed by interface (see tests/ping_agent_on_cold_repo, tests/cold_agent_on_repo_with_holes, and tests/spawn).
  • (Temporary) 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_repository and samples/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, and tests/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.

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 mistralai or litellm and set your MISTRAL_API_KEY in the environment,
  • the package openai and set your OPENAI_API_KEY in the environment.

General architecture

class diagram

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a2a_agentspeak-0.0.13.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

a2a_agentspeak-0.0.13-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file a2a_agentspeak-0.0.13.tar.gz.

File metadata

  • Download URL: a2a_agentspeak-0.0.13.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for a2a_agentspeak-0.0.13.tar.gz
Algorithm Hash digest
SHA256 95ff2fbd08b09ffee6f0f1c76f91f6b7f05c1a4261e203477ccda4dbf44525cf
MD5 0e6faa613e8103fb5ead8220b2afa8d0
BLAKE2b-256 940752620215e76f5e5106e0e1cc70a3dd9f0ede634a8887f8ca48a947bd1cb5

See more details on using hashes here.

File details

Details for the file a2a_agentspeak-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for a2a_agentspeak-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 630d289224afa926ccdbbb48170bf1625997813826529633dfcee18d50e99265
MD5 ee81ad8dc82ad53f005db67ffa82ea87
BLAKE2b-256 e40fe29257f03960530fa67a4c30aee20d69139ab8c3441c6c00f74d5fc71b21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page