Tag: websocket
All the articles with the tag "websocket".
Streaming Agents with Pydantic AI over Typed WebSockets: Tools, Approvals, and a Generated Client
Building a production-style AI agent server with Pydantic AI + FastAPI + chanx: streaming structured output and human-in-the-loop tool approvals over a typed WebSocket contract, background runs broadcast to conversation groups (multi-tab, refresh-proof, approve from any device), AsyncAPI-generated TypeScript clients, and offline tests without an LLM.
ChanX: Structured, Type-Safe WebSockets for Django and FastAPI
A batteries-included WebSocket framework: automatic message routing with Pydantic, mypy/pyright type safety, auto-generated AsyncAPI docs, and testing utilities — one codebase for Django Channels and FastAPI.
fast-channels: Django Channels for FastAPI
Bringing Django Channels' battle-tested consumer patterns and channel layers to FastAPI, Starlette, and any ASGI framework — group messaging, background workers, and cross-process communication included.