Repository navigation
v0.6.3
Highlights
Added
- Completion-aware outbound calls —
call(wait=True)→CallResult(both SDKs). Place a call andawaitits real outcome in one line instead of hand-wiringon_call_end/onCallEndto an event.waitdefaults tofalse(fire-and-forget, unchanged), so it's fully backward compatible.CallResultcarriesoutcome(answered/voicemail/no_answer/busy/failed),status,duration,transcript,cost,metrics— every value from a real carrier signal. - Guaranteed teardown —
async with Patter(...)(Python) /await usingvia[Symbol.asyncDispose](TypeScript). Exiting always runsdisconnect(), closing the billing-leak where a stray TTS WebSocket kept billing after the SDK was done. - Plivo as a third telephony carrier (both SDKs) with full Twilio/Telnyx parity — V3 HMAC-SHA256 webhook signature verification (fails closed), bidirectional media WebSocket, native
sendDTMF, voicemail drop, CDR-reconciled pricing.call(wait=True)resolves for Plivo too. Thanks @amalshaji-plivo (#121). - Contributor guardrails —
AGENTS.md, PR template +CONTRIBUTING.mdpre-PR checklist (CHANGELOG, both-SDK parity,pr-validate.sh, notebook parity).
Fixed
- Plivo + Pipeline + ElevenLabs garbled/static outbound audio (TypeScript) — added the
plivo → ulaw_8000native-format case so already-μ-law TTS bytes aren't re-encoded. Python was unaffected. PatterTool(Python) always reportedcost_usd=None/duration_seconds=0.0— the result builder probed theCallMetricspayload as a dict; rebuilt on thecall(wait=True)path.
Install: pip install getpatter==0.6.3 · npm install getpatter@0.6.3
Full changelog: CHANGELOG.md → 0.6.3. PRs: #120, #121.