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

# autogen.agentchat.realtime.experimental.clients.oai.utils.parse_oai_message

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### parse\_oai\_message

```python theme={null}
parse_oai_message(message: dict[str, Any]) -> RealtimeEvent
```

Parse a message from the OpenAI Realtime API.<br />

<b>Parameters:</b>

| Name      | Description                                                       |
| --------- | ----------------------------------------------------------------- |
| `message` | The message to parse.<br /><br />**Type:** dict\[str, typing.Any] |

<b>Returns:</b>

| Type                                                                                                       | Description                      |
| ---------------------------------------------------------------------------------------------------------- | -------------------------------- |
| [RealtimeEvent](/docs/api-reference/autogen/agentchat/realtime/experimental/realtime_events/RealtimeEvent) | RealtimeEvent: The parsed event. |

<br />
