NEXXUS SDKs
Official SDKs for integrating NEXXUS AI Trust & Safety evaluation into your applications. Choose your preferred language to get started.
Python SDK
Python 3.8+
Idiomatic Python library with async support, type hints, and comprehensive error handling.
pip install trustscanJavaScript SDK
TypeScript/JavaScript
TypeScript-first SDK for Node.js and browsers with React hooks and streaming support.
npm install @trustscan/sdkCommand Line Interface
For quick evaluations and CI/CD integration, use our CLI tool.
npm install -g @trustscan/cli
# Or use with npx
npx @trustscan/cli evaluate --help# Configure
trustscan configure --api-key ts_live_xxx
# Run evaluation
trustscan evaluate --prompt "What is 2+2?" --response "2+2 equals 4"
# Get report
trustscan report eval_abc123 --format pdfCommon Features
All NEXXUS SDKs share these core capabilities:
Automatic Retries
Built-in retry logic with exponential backoff for transient failures.
Secure by Default
TLS 1.3, secure credential storage, and environment variable support.
Async Support
Full async/await support for non-blocking operations.
Type Safety
Full type definitions for TypeScript and Python type hints.
Quick Start
Run your first evaluation in just a few lines of code:
Python
from trustscan import NEXXUS
client = NEXXUS(api_key="ts_live_xxx")
result = client.evaluate(
content="AI-generated response to evaluate",
mode="STANDARD"
)
print(f"Trust Score: {result.trust_score}")
print(f"Certification: {result.certification_tier}")JavaScript/TypeScript
import { NEXXUS } from '@trustscan/sdk';
const client = new NEXXUS({ apiKey: 'ts_live_xxx' });
const result = await client.evaluate({
content: 'AI-generated response to evaluate',
mode: 'STANDARD'
});
console.log(`Trust Score: ${result.trustScore}`);
console.log(`Certification: ${result.certificationTier}`);Environment Variables
All SDKs support configuration via environment variables:
| Variable | Description |
|---|---|
TRUSTSCAN_API_KEY | API key for authentication |
TRUSTSCAN_BASE_URL | API base URL (default: https://api.trustscan.io) |
TRUSTSCAN_ORG_ID | Default organization ID |
TRUSTSCAN_TIMEOUT | Request timeout in milliseconds |