Class: OpenAI::Resources::Realtime
- Inherits:
-
Object
- Object
- OpenAI::Resources::Realtime
show all
- Includes:
- Helpers::Realtime::Connections
- Defined in:
- lib/openai/resources/realtime.rb,
lib/openai/resources/realtime/calls.rb,
lib/openai/resources/realtime/client_secrets.rb,
sig/openai/resources/realtime.rbs,
sig/openai/resources/realtime/calls.rbs,
sig/openai/helpers/realtime/extensions.rbs,
sig/openai/resources/realtime/client_secrets.rbs
Defined Under Namespace
Classes: Calls, ClientSecrets
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(client:) ⇒ Realtime
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Realtime.
15
16
17
18
19
|
# File 'lib/openai/resources/realtime.rb', line 15
def initialize(client:)
@client = client
@client_secrets = OpenAI::Resources::Realtime::ClientSecrets.new(client: client)
@calls = OpenAI::Resources::Realtime::Calls.new(client: client)
end
|
Instance Attribute Details
10
11
12
|
# File 'lib/openai/resources/realtime.rb', line 10
def calls
@calls
end
|
7
8
9
|
# File 'lib/openai/resources/realtime.rb', line 7
def client_secrets
@client_secrets
end
|
Instance Method Details
#connect ⇒ Object
53
|
# File 'sig/openai/helpers/realtime/extensions.rbs', line 53
def connect: (
|
#connect_to_call ⇒ Object
63
|
# File 'sig/openai/helpers/realtime/extensions.rbs', line 63
def connect_to_call: (
|
#connect_transcription ⇒ Object
73
|
# File 'sig/openai/helpers/realtime/extensions.rbs', line 73
def connect_transcription: (
|