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
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 autogen_rubric-1.5.0.tar.gz.
File metadata
- Download URL: autogen_rubric-1.5.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4ebeff06680a0605eb5a100f74e8eaea7cb9586cfc9bf8c38eb59c74ef66779
|
|
| MD5 |
e9c6a39add9ad39f2b05330f4e315a47
|
|
| BLAKE2b-256 |
1e9fa8e5f6fb36250d2e252ba7b80b8b9ac34f869c73c55c0fd991149ccd1bb9
|
File details
Details for the file autogen_rubric-1.5.0-py3-none-any.whl.
File metadata
- Download URL: autogen_rubric-1.5.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1444c2729ebb79052ad15a8633a5c5d804da58aad721296be54ebf9e9bf2a9ea
|
|
| MD5 |
9fff44f0aba04daecd9ce79f29334c16
|
|
| BLAKE2b-256 |
9c169657ed6116b49bbf406adaa7ec7df9fe601907bac9097e8a5ab28a99d25f
|