TECH NEWS
Streaming Agents with Pydantic AI over Typed WebSockets: Tools, Approvals, and a Generated Client
I’ve been building realtime products for years: group chat, voice pipelines, streaming AI assistants. Two kinds of pain kept following me around. The first was WebSockets. Every project grew the same untyped receive_json handler with an if/else chain, hand-written validation, and no contract the frontend could rely