Skip to main content

enhanced-agent-bus

PyPI Python License: AGPL-3.0

High-performance agent communication infrastructure with constitutional governance.

enhanced-agent-bus is the ACGS runtime layer for governed agent-to-agent messaging. It combines message routing, registration, constitutional validation, MACI-aware controls, deliberation hooks, and FastAPI API surfaces in a single package.

Installation

enhanced-agent-bus supports Python 3.11+.

pip install enhanced-agent-bus
pip install enhanced-agent-bus[dev]
pip install enhanced-agent-bus[ml]
pip install enhanced-agent-bus[pqc]
pip install enhanced-agent-bus[postgres]
pip install enhanced-agent-bus[messaging]

Quick Start

from enhanced_agent_bus import AgentMessage, EnhancedAgentBus, MessageType, Priority

bus = EnhancedAgentBus(redis_url="redis://localhost:6379", enable_maci=True)
await bus.start()

await bus.register_agent(
    "planner",
    agent_type="supervisor",
    capabilities=["planning", "reasoning"],
)
await bus.register_agent(
    "executor",
    capabilities=["code", "deploy"],
)

message = AgentMessage(
    from_agent="planner",
    to_agent="executor",
    message_type=MessageType.COMMAND,
    priority=Priority.HIGH,
    content={"action": "deploy", "target": "staging"},
    constitutional_hash=bus.constitutional_hash,
)

result = await bus.send_message(message)
assert result.is_valid

await bus.stop()

API Server

python -m enhanced_agent_bus.api

That starts the package's FastAPI app. The application factory also lives at enhanced_agent_bus.api.app:create_app.

Deliberation and Adapters

  • The deliberation layer is exposed via enhanced_agent_bus.deliberation_layer and is also split into the separate acgs-deliberation compatibility package.
  • LLM adapter primitives live under enhanced_agent_bus.llm_adapters, including LLMAdapterRegistry, FallbackChain, provider configs, and constrained-output helpers.
  • Some optional adapter and ML features require the extras listed above.

Key Features

  • Redis-backed or mixed-mode agent registration and message routing.
  • Constitutional hash validation, tenant isolation, and fail-closed validation paths.
  • MACI enforcement and governance-aware message processing.
  • Deliberation, impact scoring, and approval-routing hooks for higher-risk actions.
  • Observability, rate limiting, retry/idempotency handling, and extensible plugin surfaces.

Testing

python -m pytest packages/enhanced_agent_bus/tests/ -v --import-mode=importlib
python -m pytest packages/enhanced_agent_bus/tests/ -m "not slow" -v --import-mode=importlib

License

AGPL-3.0-or-later. Commercial licensing is available; contact hello@acgs.ai.

Constitutional Hash: 608508a9bd224290

Metadata

Release files for enhanced-agent-bus 3.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for enhanced-agent-bus 3.0.2
File Size Uploaded Provenance Actions
enhanced_agent_bus-3.0.2.tar.gz 4.7 MB Without provenance Details for enhanced_agent_bus-3.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for enhanced-agent-bus 3.0.2
File Interpreter ABI Platform Actions
enhanced_agent_bus-3.0.2-py3-none-any.whl Python 3 none any Details for enhanced_agent_bus-3.0.2-py3-none-any.whl

Total release size: 6.9 MB

Release files / enhanced_agent_bus-3.0.2.tar.gz

Download URL enhanced_agent_bus-3.0.2.tar.gz
Size 4.7 MB
Tags Source
SHA-256 checksum
How to use checksums
333bda21705e0277696f82c202522139a1a06af7dd3ec3f4663064b2b25511e0
BLAKE2b-256 checksum
How to use checksums
1d6e5064ee82f1e97953870b10deadd8cfde1f831a041767187eed2c5cc18580
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / enhanced_agent_bus-3.0.2-py3-none-any.whl

Download URL enhanced_agent_bus-3.0.2-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1f8abdc3fc127a88c1b752bf077a75ecd04ecfa0fe4dfe2999e3e826c6f816c7
BLAKE2b-256 checksum
How to use checksums
00436a0452f14c4eeadccfde396c6a12cf39aed199190e8c81176240de499115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for enhanced-agent-bus 3.0.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page