Skip to main content

ACGS deliberation and HITL orchestration package

Project description

acgs-deliberation

PyPI Python License: AGPL-3.0

Deliberation, HITL orchestration, consensus, and impact routing for ACGS agents.

acgs-deliberation is the extraction-friendly deliberation package for the ACGS runtime. Today it re-exports the stable surface from enhanced_agent_bus.deliberation_layer, so you can start using the standalone import path now without waiting for the full source move.

Installation

acgs-deliberation supports Python 3.11+.

pip install acgs-deliberation

Quick Start

from acgs_deliberation import Vote, VotingService, calculate_message_impact
from enhanced_agent_bus.models import AgentMessage, MessageType, Priority

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

voting = VotingService(force_in_memory=True)
election_id = await voting.create_election(
    message,
    participants=["security", "risk", "compliance"],
)

await voting.cast_vote(
    election_id,
    Vote(agent_id="security", decision="APPROVE", reason="controls in place"),
)

decision = await voting.get_result(election_id)
impact = calculate_message_impact(message.to_dict(), {"environment": "production"})

Redis-Backed Voting

from acgs_deliberation import get_redis_voting_system

redis_voting = get_redis_voting_system()

Key Features

  • Voting primitives including VotingService, Election, Vote, and VotingStrategy.
  • Event-driven collection via EventDrivenVoteCollector, VoteSession, and VoteEvent.
  • Deliberation queue support with DeliberationQueue and DeliberationTask.
  • Optional Redis-backed queueing and voting primitives for distributed deployments.
  • Impact scoring and GraphRAG context enrichment hooks for review routing.

Package Relationship

  • Install name: acgs-deliberation
  • Import namespace: acgs_deliberation
  • Runtime dependency: enhanced-agent-bus>=3.0.0

License

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

Links

Constitutional Hash: 608508a9bd224290

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

acgs_deliberation-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

acgs_deliberation-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file acgs_deliberation-0.1.1.tar.gz.

File metadata

  • Download URL: acgs_deliberation-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for acgs_deliberation-0.1.1.tar.gz
Algorithm Hash digest
SHA256 980f11a50d38f55e2811d446cfaabde5ae1ff4e7ede7387e1c40b492d99ae819
MD5 9114afdbba8d8499c1019c1ef0314622
BLAKE2b-256 515c6c21981b17c2957e0550652dcb2311360f4515867f8600e6d4dfb718f523

See more details on using hashes here.

File details

Details for the file acgs_deliberation-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for acgs_deliberation-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a2fd2dc171f99d8fa8c28d4e58a715fd7654fcb7c1a4f16406307e90d571053
MD5 f9ff0e0c56079ad485fb86e5280dc38d
BLAKE2b-256 14426b95e2872bb4a2ecc56ae94091b42c0acd2014069a25de6be6ac52c92849

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