Skip to content

v0.2.0 — Gateway-first SDK

Latest

Choose a tag to compare

@latenceainew latenceainew released this 09 May 11:16

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