View module source on GitHub

handle_session_created

def handle_session_created(session_info: SessionStoreEntry,
                           event: SessionCreatedEvent)

This function is called when the realtime session receives an event from the OpenAI server.

handle_openai_client_event_queued

def handle_openai_client_event_queued(session_info: SessionStoreEntry,
                                      event: dict)

This function is called when the realtime session receives an event from the OpenAI client.

handle_openai_server_event_received

def handle_openai_server_event_received(session_info: SessionStoreEntry,
                                        event: Any)

This function is called when the realtime session receives an event from the OpenAI server.