RealtimeObserver

class RealtimeObserver(ABC)

Observer for the OpenAI Realtime API.

client

@property
def client() -> "OpenAIRealtimeClient"

Get the client associated with the observer.

register_client

def register_client(client: "OpenAIRealtimeClient") -> None

Register a client with the observer.

run

@abstractmethod
async def run() -> None

Run the observer.

update

@abstractmethod
async def update(message: dict[str, Any]) -> None

Update the observer with a message from the OpenAI Realtime API.