Skip to main content

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

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-2.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

rubric_protocol-2.0.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file rubric_protocol-2.0.0.tar.gz.

File metadata

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

File hashes

Hashes for rubric_protocol-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7c26c3dce93a82e2db73f0e5a4dc585339e78d04bb3601e6d3dbcb93075da094
MD5 b8546d9738c0d5220abbd66431f3a294
BLAKE2b-256 ee82e2ec6085732d640290fbb4dd4e9c9382d3d1729c9754e22c91715193f391

See more details on using hashes here.

File details

Details for the file rubric_protocol-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rubric_protocol-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47423f1b6ca98d5f8f8a2eabca4cb8bbaf3e29ddb316025f6cfb3c2c823f48ed
MD5 da350e002b3b7dc7bcd5178c182b35b7
BLAKE2b-256 88d33e36e1ac018bb6a7829c9aa0a6b33dade8731a680e66c385c74df5b70936

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

1.0.1

2 files

1.0.0

2 files

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