SDKs & Integrations
TruthVouch offers two categories of packages:
- 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.
- 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
| Language | Package Name | Registry | Install | Documentation |
|---|---|---|---|---|
| Python | truthvouch | PyPI | pip install truthvouch | Quickstart → |
| TypeScript | @truthvouch/sdk | npm | npm install @truthvouch/sdk | Quickstart → |
| .NET | TruthVouch.Sdk | NuGet | dotnet add package TruthVouch.Sdk | Quickstart → |
Framework Integrations
| Framework | Language | Package Name | Registry | Install | Documentation |
|---|---|---|---|---|---|
| LangChain | Python | langchain-truthvouch | PyPI | pip install langchain-truthvouch | Integration → |
| LlamaIndex | Python | llama-index-truthvouch | PyPI | pip install llama-index-truthvouch | Integration → |
| PydanticAI | Python | pydantic-ai-truthvouch | PyPI | pip install pydantic-ai-truthvouch | Integration → |
| Semantic Kernel | .NET | TruthVouch.SemanticKernel | NuGet | dotnet add package TruthVouch.SemanticKernel | Integration → |
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