Breaking changes
- SDK now targets
api.latence.ai gateway — no more direct RunPod calls
- Removed
code(), rollup(), memory_step(), and session APIs
- Removed
TraceSession, CodeScoringResponse, RollupResponse exports
New
- Privacy endpoint:
trace.privacy.redact() — detect and redact 50+ GDPR entity types
- Compression endpoint:
trace.compression.text() — reduce context tokens while preserving meaning
- All three endpoints (grounding, privacy, compression) go through the
api.latence.ai gateway
- Tolerant response models that handle partial data from the gateway gracefully
Fixes
AsyncLatence parity with the sync client
ComplianceUsage, ComplianceRedactionResponse, and CompressionResponse models accept optional fields
Install
pip install latence==0.2.0