Skip to main content

Post-quantum AI decision attestation for AutoGen, LlamaIndex, and any Python AI pipeline

Project description

autogen-rubric

Post-quantum AI decision attestation for AutoGen, LlamaIndex, and any Python AI pipeline.

Every decision your AI agents make, cryptographically signed and anchored permanently to Hedera Consensus Service. Built for EU AI Act Article 12 compliance. Zero required dependencies.

pip install autogen-rubric

Quick Start

from autogen_rubric import RubricClient

client = RubricClient(api_key="your-rubric-api-key")

result = client.attest(
    agent_id="loan-underwriting-agent-v2",
    output="Application #12345 approved. Confidence: 0.94.",
    confidence=0.94,
)

print(result.attestation_id)  # Verifiable forever on Hedera
print(result.stage)           # "pending" -> "anchored"

Get a free API key at rubric-protocol.com.

AutoGen Integration

from autogen import AssistantAgent, UserProxyAgent
from autogen_rubric import RubricClient, RubricAutoGenHook

client = RubricClient(api_key="your-key", background_queue=True)
hook = RubricAutoGenHook(client=client, pipeline_id="compliance-pipeline-v1")

assistant = AssistantAgent("assistant", llm_config=llm_config)
hook.register(assistant)  # Every message now attested

user_proxy = UserProxyAgent("user")
user_proxy.initiate_chat(assistant, message="Review this loan application...")

LlamaIndex Integration

from llama_index.core.callbacks import CallbackManager
from autogen_rubric import RubricClient, RubricLlamaIndexHandler

client = RubricClient(api_key="your-key", background_queue=True)
handler = RubricLlamaIndexHandler(client=client)
callback_manager = CallbackManager([handler])

Function Decorator

from autogen_rubric import RubricClient, attest_function

client = RubricClient(api_key="your-key")

@attest_function(client=client, agent_id="risk-scorer-v2")
def score_risk(application: dict) -> str:
    return "approved" if application["score"] > 0.7 else "declined"

Configuration

Parameter Default Description
api_key required Your Rubric API key
node "us" Federation node: us, sg, jp, ca, eu, auto
enterprise False Merkle batching for high volume
background_queue False Non-blocking attestation
flush_interval 5.0 Seconds between queue flushes
timeout 15 HTTP timeout in seconds

Requirements

  • Python 3.9+
  • Zero required dependencies for core
  • AutoGen: pip install autogen-rubric[autogen]
  • LlamaIndex: pip install autogen-rubric[llama]
  • Both: pip install autogen-rubric[all]

EU AI Act Article 12

Enforcement deadline: August 2, 2026.

rubric-protocol.com | Scott@Rubric-Protocol.com Echelon Intelligence Group LLC | Wyoming, USA

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

autogen_rubric-1.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

autogen_rubric-1.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file autogen_rubric-1.1.0.tar.gz.

File metadata

  • Download URL: autogen_rubric-1.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for autogen_rubric-1.1.0.tar.gz
Algorithm Hash digest
SHA256 88dd43e0a055cae16a6212b7481f60a71c007c5cec5ec0308685a9fa69dff98e
MD5 d03d1a21dc39d2a5648a2eb0fc1194d9
BLAKE2b-256 804f40c65d26b0fe0d67041f02e325e7dece9128b61ac36ebb3e6d92a6f9068a

See more details on using hashes here.

File details

Details for the file autogen_rubric-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: autogen_rubric-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for autogen_rubric-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d695be3cc883910a86ece2d0f05b6572ab8560e1349a30ed8e1e96e0d7ec9275
MD5 e0eb08edf2a3413a0ebba775d8c2451c
BLAKE2b-256 4cf8e9efb69035316af66afc1b5cd6392aeaf727c9484dbbf2f77813d002d094

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