Understand the Realtime API primitives
mainThe library provides three main primitives for interacting with the API:
RealtimeClient: The high-level abstraction recommended for most users. It simplifies control flow and provides high-level utility events (e.g.,conversation.updated).RealtimeAPI(accessed viaclient.realtime): A thin wrapper over the WebSocket. It is used for low-level connection, authentication, and sending raw items. It does not perform item validation.RealtimeConversation(accessed viaclient.conversation): A client-side cache of the current conversation. It includes event validation to ensure items are cached correctly.