Post-quantum AI decision attestation on Hedera Consensus Service. EU AI Act Article 12 compliant.
Project description
Rubric Protocol Python SDK
Post-quantum AI decision attestation on Hedera Consensus Service. EU AI Act Article 12 compliant.
Install
pip install rubric-protocol
Quick Start
from rubric_protocol import RubricClient, AttestationRequest
client = RubricClient(api_key="rubric-dev-...")
result = client.attest(AttestationRequest(
agent_id="my-agent",
output="approved",
confidence=0.97
))
print(result.attestation_id)
AutoGen
from rubric_protocol.plugins.autogen import RubricAutogenHook
hook = RubricAutogenHook(client, agent_id="my-autogen-agent")
assistant.register_hook("process_message_before_send", hook.before_send)
LlamaIndex
from rubric_protocol.plugins.llamaindex import RubricCallbackHandler
from llama_index.core import Settings
Settings.callback_manager.add_handler(
RubricCallbackHandler(client, agent_id="my-llama-agent")
)
Verify
proof = client.verify(result.attestation_id)
print(proof["verified"]) # True
Get Your API Key
https://rubric-protocol.com/developers
Links
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
rubric_protocol-1.0.1.tar.gz
(5.7 kB
view details)
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 rubric_protocol-1.0.1.tar.gz.
File metadata
- Download URL: rubric_protocol-1.0.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16677f96aac07d8e0b5c65ba1dba89db753ea632f6df48f497b8b5e7e1dfdd55
|
|
| MD5 |
0b928770141f8a1a76bef3ebdf2e9485
|
|
| BLAKE2b-256 |
3456c9c406804fe7ed8c4c3720a32a7c5a6b7c98803e1cb404dbe99c4000ee35
|
File details
Details for the file rubric_protocol-1.0.1-py3-none-any.whl.
File metadata
- Download URL: rubric_protocol-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 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 |
65d37c5e1c15d140c132b6381a40f5af5950d64979a08b93448433bef46b98a9
|
|
| MD5 |
7f488c01c0349de1beaaa10e9d4d57b4
|
|
| BLAKE2b-256 |
9bff8a14325af23e518ce7fc362f338ce1e5db29bcda5a4fec090be4fa2c32f1
|