# `Mojentic.Realtime.Gateway`
[🔗](https://github.com/svetzal/mojentic-ex/blob/v1.5.0/lib/mojentic/realtime/gateway.ex#L1)

Behaviour for realtime voice gateways.

Sibling to `Mojentic.LLM.Gateway`: the chat-completions gateway is
request/response; this one opens a duplex session and yields a
stream of normalised events.

# `open`

```elixir
@callback open(
  model :: String.t(),
  config :: Mojentic.Realtime.Config.t(),
  correlation_id :: String.t() | nil
) :: {:ok, pid()} | {:error, term()}
```

Open a realtime session. Returns the transport pid on success;
callers subscribe to it via `Transport.subscribe/2` for inbound
events.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
