SDK Overview
The Verity SDK is an OpenTelemetry-native instrumentation layer that seals your agent's actions into independently verifiable records.
"No Rip-and-Replace" Guarantee
Your agent's code does not change
Most governance tools require you to rewrite your agent's logic, route all calls through their proxy, or replace your existing observability stack. Verity does not. The certify() function wraps your existing code. It executes the function exactly as it ran before, returns the exact same result, and emits a cryptographically signed record in the background. If Verity goes down, your agent keeps running.
🛡️ Fail-Safe by Default: If Verity's API is unreachable, the agent continues to run. Governance should never break production.
🔌 OpenTelemetry Native: Already using OTel? Verity emits standard GenAI semantic conventions. Your existing telemetry pipeline keeps working.
🧩 Framework Agnostic: Works with LangChain, CrewAI, AutoGen, or raw Python/TypeScript. No proprietary DSLs to learn.
import { Verity } from "@renissance/verity";
const verity = new Verity({ apiKey: process.env.VERITY_API_KEY });
// Wrap your function. That's it.
export const processRefund = verity.certify(
async (orderId) => await refundAgent.run(orderId)
);
Framework Integrations
Drop-in callbacks for the frameworks you already use.
We provide native adapters that hook directly into the framework's event stream. If you are using one of these, you do not even need to wrap individual functions, just attach the Verity handler.
LangChain / LangGraph
from verity.langchain import VerityCallbackHandler
agent = initialize_agent(..., callbacks=[VerityCallbackHandler()])
CrewAI
from verity.crewai import VerityCrewHook
crew = Crew(..., step_callback=VerityCrewHook())
AutoGen
from verity.autogen import VerityAutoGenHook
hook.attach(agent)
Custom / Raw OTel
(See the wrap() documentation for manual instrumentation)
The Integration Journey (Quickstart)
From install to verified evidence in 5 minutes.
We provide native adapters that hook directly into the framework's event stream. If you are using one of these, you do not even need to wrap individual functions, just attach the Verity handler.
Step 1: Install
pip install verity-sdk
# Or
npm install @renissance/verity
Step 2: Initialize
import { Verity } from "@renissance/verity";
const verity = new Verity({ apiKey: process.env.VERITY_API_KEY });
(Note: You can run the SDK locally without an API key for development. It will write records to your local filesystem. See "Local Development" below.)
Step 3: Certify
const result = await verity.certify(
() => myAgent.execute(),
{ action: "execute", agentId: "my-agent-1" }
);
Step 4: Verify (Locally)
verity-verify ./local_records/
Local Development & No-Op Mode
Test locally. Disable in CI. Never break your build.
We know you cannot add a hard dependency to your production pipeline on day one. The SDK includes a built-in No-Op mode and a local development mode.
Feature List:
No-Op Mode: Set VERITY_DISABLED=true in your environment variables, and every Verity method becomes a no-op. Your code runs exactly as it did before. Perfect for unit tests or environments where Verity is not yet deployed.
Local File System Mode: Do not have an API key yet? The SDK writes evidence bundles directly to a local directory. You can test the integration, inspect the JSON output, and run the open-source verifier without a network connection.
What the SDK Captures (and What It Does not)
Privacy by design. Hash-only by default.
We know you cannot send raw PII or proprietary prompts to a third-party vendor. By default, the Verity SDK never transmits the contents of your agent's inputs, outputs, or memory. It transmits the cryptographic hashes of those events.
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
Note: If you explicitly need to capture content for debugging, you can opt-in via captureContent: true, but the default is strictly metadata.
Core SDK Primitives
The building blocks.
The SDK is small and focused. You only need to learn a few methods:
certify(): Wraps an agent function. Hashes the input, executes the function, hashes the output, and emits a signed record.
emit(): For manual event logging. If you want to record a specific decision or state change inside your agent, call verity.emit() directly.
session(): Groups multiple certifications into a single, correlated chain. Useful for multi-step workflows.
verify(): A client-side helper to verify a record or chain locally before sending it to the Verity Cloud.
The CLI
Developer tools for the terminal
The SDK ships with a command-line interface for local testing, verification, and debugging.
#Generate a default config file
verity init
#Verify a local evidence bundle
verity verify ./evidence_bundle/
#Stream recent records to your terminal in real-time
verity tail
#Inspect a specific record's JSON payload
verity inspect <record_id>
Open Source and Support
Free forever for developers
The core SDK and the verifier are open source (MIT/Apache 2.0). You can read the code, contribute to the standard, or fork it.
Details
Replace this editable placeholder with capabilities, implementation details, and operational requirements. Add supporting documentation and approved technical claims here.
Request Access
