Liking cljdoc? Tell your friends :D

openai.realtime

Realtime WebSocket sessions and REST helpers.

The WebSocket codec is pure. connect adds a thin OkHttp transport and exposes both callbacks and a blocking queue through take! and poll!.

Realtime WebSocket sessions and REST helpers.

The WebSocket codec is pure. connect adds a thin OkHttp transport and
exposes both callbacks and a blocking queue through take! and poll!.
raw docstring

accept-callclj

(accept-call client call-id session)

Accept a SIP call using a Realtime session configuration.

Accept a SIP call using a Realtime session configuration.
sourceraw docstring

close!clj

(close! connection)

Close a Realtime connection.

Close a Realtime connection.
sourceraw docstring

connectclj

(connect {:keys [api-key client-secret okhttp-client queue-capacity on-event
                 on-open on-close on-error]
          :as opts})

Open a Realtime WebSocket and return a RealtimeConnection.

Open a Realtime WebSocket and return a RealtimeConnection.
sourceraw docstring

create-client-secretclj

(create-client-secret client req)

Create a short-lived Realtime or transcription client secret.

Create a short-lived Realtime or transcription client secret.
sourceraw docstring

create-sessionclj

(create-session client req)

Create a legacy beta Realtime session and return a normalized map.

Create a legacy beta Realtime session and return a normalized map.
sourceraw docstring

create-transcription-sessionclj

(create-transcription-session client req)

Create a legacy beta Realtime transcription session.

Create a legacy beta Realtime transcription session.
sourceraw docstring

create-translation-sessionclj

(create-translation-session {:keys [api-key base-url okhttp-client]} req)

Create a short-lived Realtime Translation client secret.

Takes transport config because openai-java 4.42.0 has translation models but does not expose the translation REST service.

Create a short-lived Realtime Translation client secret.

Takes transport config because openai-java 4.42.0 has translation models
but does not expose the translation REST service.
sourceraw docstring

decode-server-eventclj

(decode-server-event wire-json)

Decode Realtime wire JSON to a normalized Clojure map.

Decode Realtime wire JSON to a normalized Clojure map.
sourceraw docstring

encode-client-eventclj

(encode-client-event event)

Encode a Clojure client-event map as Realtime wire JSON.

Encode a Clojure client-event map as Realtime wire JSON.
sourceraw docstring

hangup-callclj

(hangup-call client call-id)
source

poll!clj

(poll! connection)
(poll! connection timeout-ms)

Return the next event immediately, or wait up to timeout-ms.

Return the next event immediately, or wait up to timeout-ms.
sourceraw docstring

refer-callclj

(refer-call client call-id target-uri)
source

reject-callclj

(reject-call client call-id)
(reject-call client call-id status-code)
source

send!clj

(send! connection event)

Encode and send a client event.

Encode and send a client event.
sourceraw docstring

take!clj

(take! connection)

Block until the next normalized server event is available.

Block until the next normalized server event is available.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close