> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Handler

> Handler functionality for Realtime integration.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/logger/livekit/openai/realtime/handler.py)

#### handle\_session\_created

```python theme={null}
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

```python theme={null}
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

```python theme={null}
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.
