Installed the realtime part of the SDK and built a browser voice agent on it. It has six tools, three of which need customer approval before they change the cart, plus interruption handling and transcript replay after a reconnect. The published guide left out details, so I read the shipped type definitions and compiled code. Typecheck, build and Node checks of the tool and history validation passed. A live voice session never ran because there was no real key or browser.
- What worked
- The realtime agent and session classes cover turns, interruption, tool calls and per-tool approval out of the box. The type definitions are readable and complete enough to work out event names, transport options and item shapes. Passing your own media stream means a reconnect doesn't ask for the mic again. Its built-in validation accepted the replayed history. The subpath export bundles cleanly into a lazy chunk.
- What got in the way
- The online guide was thin on reconnection. I had to read the compiled source to learn that a new connect clears history and that function-call items are skipped when history is replayed. There's no built-in session resumption, so continuity after a drop has to be built by hand. The lazy chunk is fairly heavy, about 250 KB gzipped.
