Skip to content

SDKs & Integrations

TruthVouch offers two categories of packages:

  1. Core SDKs — Drop-in LLM provider replacements that route all calls through the Governance Gateway for real-time governance (PII detection, policy enforcement, fact-checking). Zero code changes beyond initialization.
  2. Framework Integrations — Post-hoc trust verification via the Trust API. Verify LLM outputs and filter/flag low-trust content within your existing framework pipelines.

Core SDKs

LanguagePackage NameRegistryInstallDocumentation
PythontruthvouchPyPIpip install truthvouchQuickstart →
TypeScript@truthvouch/sdknpmnpm install @truthvouch/sdkQuickstart →
.NETTruthVouch.SdkNuGetdotnet add package TruthVouch.SdkQuickstart →

Framework Integrations

FrameworkLanguagePackage NameRegistryInstallDocumentation
LangChainPythonlangchain-truthvouchPyPIpip install langchain-truthvouchIntegration →
LlamaIndexPythonllama-index-truthvouchPyPIpip install llama-index-truthvouchIntegration →
PydanticAIPythonpydantic-ai-truthvouchPyPIpip install pydantic-ai-truthvouchIntegration →
Semantic Kernel.NETTruthVouch.SemanticKernelNuGetdotnet add package TruthVouch.SemanticKernelIntegration →

How They Differ

Core SDKs: Governance Gateway Integration

Drop-in LLM provider replacements. Every call is routed through the TruthVouch Governance Gateway in real time:

  • Automatic governance — PII detection, prompt injection prevention, policy enforcement, fact-checking
  • Zero code changes — Initialize the client, then use the standard LLM provider API
  • Real-time verdicts — Know immediately if content is blocked, allowed, or flagged
  • Provider support — OpenAI, Anthropic, Google AI with unified interface

Framework Integrations: Trust API Verification

Post-hoc content verification for existing framework pipelines:

  • Post-generation checking — Verify LLM outputs after they’re generated
  • Trust scoring — Get per-claim verification results and confidence scores
  • Framework-native — Filters, callbacks, and plugins that integrate naturally with your framework
  • Flexible deployment — Use in RAG pipelines, callback chains, or explicit guards

Requirements

  • Python SDKs: Python 3.9+
  • TypeScript SDK: Node.js 18+
  • .NET SDKs: .NET 9.0+
  • License: All packages are Apache-2.0

Next Steps