Install the AgDR Kernel
AgDR requires a low-latency environment. Choose your integration path:
[dependencies]
agdr-aki = "1.8"
pip install agdr-aki
Requires Python 3.10+. Prebuilt wheels for Windows x64 (Python 3.12+). Other platforms build from source — requires Rust toolchain. View on PyPI
Clone the AgDR-Phoenix SDK — the canonical Rust and PyO3 implementation of AgDR v1.8:
git clone https://github.com/aiccountability-source/AgDR-Phoenix.git
cd AgDR-Phoenix
cargo build --release
Requires Rust 1.75 or later.
View complete build prerequisites
Define the PPP Triplet
Every inference must be preceded by a Purpose, Place, and Person triplet. This is the cryptographic handshake for accountability.
use agdr_aki::{AgDR, Provenance, Place, Purpose};
let record = AgDR::new(
Provenance::from("High-risk credit evaluation"),
Place::from("Compute-Node-Alpha-East"),
Purpose::from("FOI-7702")
);
The PPP Triplet binds contextual metadata to each record at creation, satisfying the Provenance, Place, Purpose requirement for legal admissibility under Canada Evidence Act section 31.1.
Commit the Inference
The Atomic Kernel Inference ensures that the record is hashed and signed before the AI output is released to the requester.
let output = record.seal(|| {
// Your inference logic here
model.predict(input_features)
})?;
// Record is now immutable and cryptographically sealed
println!("Root hash: {}", output.root_hash());
println!("Signature: {}", output.signature());
Confirm your environment is correctly configured:
cargo test --package agdr_aki -- aki_basic_inference --nocapture
Expected output: test result: ok. 1 passed; 0 failed
Next Steps
Continue your AgDR integration journey: