Available SDKs
| Language | Package | Status |
|---|---|---|
| Python | qwed | ✅ Stable |
| TypeScript | @qwed-ai/sdk | ✅ Stable |
| Go | github.com/QWED-AI/qwed-verification/sdk-go/v9 | Tagged releases (sdk-go/vX.Y.Z) |
| Rust | qwed | ✅ Stable |
Feature comparison
| Feature | Python | TypeScript | Go | Rust |
|---|---|---|---|---|
| Sync client | ✅ | ✅ | ✅ | ✅ |
| Async client | ✅ | ✅ | ✅ | ✅ |
| Batch operations | ✅ | ✅ | ✅ | ✅ |
| Agent API | ✅ | ✅ | ❌ | ❌ |
| Attestations | ✅ | ✅ | ✅ | ✅ |
| CLI | ✅ | ❌ | ❌ | ❌ |
Quick install
# Python
pip install qwed
# TypeScript
npm install @qwed-ai/sdk
# Go
go get github.com/QWED-AI/qwed-verification/sdk-go/v9
# Rust
cargo add qwed
Minimal example
- Python
- TypeScript
- Go
- Rust
import httpx
from qwed_sdk import QWEDClient
client = QWEDClient(api_key="qwed_...")
try:
result = client.verify_math("2+2=4")
except httpx.HTTPError as exc:
raise RuntimeError(f"QWED request failed: {exc}") from exc # not a verdict
print(result.is_verified) # True: the server admitted it
import { QWEDClient, isAdmitted } from '@qwed-ai/sdk';
const client = new QWEDClient({ apiKey: 'qwed_...' });
try {
const result = await client.verifyMath('2+2=4');
console.log(isAdmitted(result)); // true
} catch (err) {
console.error(err); // the request failed: not a verdict
}
client := qwed.NewClient("qwed_...")
result, err := client.VerifyMath(ctx, "2+2=4")
if err != nil {
log.Fatal(err) // the request failed: not a verdict
}
fmt.Println(result.IsAdmitted()) // true
let client = QWEDClient::new("qwed_...");
let result = client.verify_math("2+2=4").await?;
println!("{}", result.is_admitted()); // true