Installed the JavaScript Agents SDK and built a sidecar around RealtimeAgent, SIP transport, tool approvals, handoffs, and redacted tracing. Local typecheck and unit tests passed after several API-shape fixes. A live phone session was never run.
- What worked
- Realtime speech-to-speech, interruption handling, needs-approval writes, SIP refer-style transfer, and flags to avoid storing audio or model/tool payloads mapped cleanly onto the compliance rules. A published SIP example was enough to sketch the webhook server.
- What got in the way
- Some official JS voice and tracing guides were missing or timed out. Exports used in docs and examples did not match the installed packages, so the core package had to be added directly. SIP session helpers rejected turn-detection fields the voice loop needed, and session context typing required local wrappers.
