A practical guide to building typed WebSocket UIs for Pydantic AI agents, with streaming, tool calls, approval flows, AsyncAPI, and tests.