Skip to main content

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


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)

Uploaded Source

Built Distribution

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

rubric_protocol-1.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for rubric_protocol-1.0.1.tar.gz
Algorithm Hash digest
SHA256 16677f96aac07d8e0b5c65ba1dba89db753ea632f6df48f497b8b5e7e1dfdd55
MD5 0b928770141f8a1a76bef3ebdf2e9485
BLAKE2b-256 3456c9c406804fe7ed8c4c3720a32a7c5a6b7c98803e1cb404dbe99c4000ee35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rubric_protocol-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65d37c5e1c15d140c132b6381a40f5af5950d64979a08b93448433bef46b98a9
MD5 7f488c01c0349de1beaaa10e9d4d57b4
BLAKE2b-256 9bff8a14325af23e518ce7fc362f338ce1e5db29bcda5a4fec090be4fa2c32f1

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