openai 0.105.0 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/openai/models/admin/organization/external_storage_configuration.rb +1 -0
- data/lib/openai/models/beta/agent_create_params.rb +3 -0
- data/lib/openai/models/beta/agent_update_params.rb +3 -0
- data/lib/openai/models/beta/agents/session_create_params.rb +3 -0
- data/lib/openai/models/beta/agents/session_update_params.rb +3 -0
- data/lib/openai/models/beta/assistant_update_params.rb +12 -0
- data/lib/openai/models/beta/beta_response.rb +12 -0
- data/lib/openai/models/beta/beta_responses_client_event.rb +12 -0
- data/lib/openai/models/beta/response_compact_params.rb +12 -0
- data/lib/openai/models/beta/response_create_params.rb +12 -0
- data/lib/openai/models/chat_model.rb +12 -0
- data/lib/openai/models/decision_create_params.rb +112 -1
- data/lib/openai/models/decision_input_image.rb +14 -1
- data/lib/openai/models/decision_input_text.rb +15 -1
- data/lib/openai/models/decision_prompt_cache_breakpoint.rb +21 -0
- data/lib/openai/models/live/sideband_server_event.rb +243 -3
- data/lib/openai/models/responses/response_compact_params.rb +12 -0
- data/lib/openai/models.rb +2 -0
- data/lib/openai/resources/beta/responses.rb +19 -0
- data/lib/openai/resources/decisions.rb +15 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +1 -0
- data/rbi/openai/models/admin/organization/external_storage_configuration.rbi +1 -0
- data/rbi/openai/models/beta/agent_create_params.rbi +3 -0
- data/rbi/openai/models/beta/agent_update_params.rbi +3 -0
- data/rbi/openai/models/beta/agents/session_create_params.rbi +3 -0
- data/rbi/openai/models/beta/agents/session_update_params.rbi +3 -0
- data/rbi/openai/models/decision_create_params.rbi +146 -0
- data/rbi/openai/models/decision_input_image.rbi +22 -1
- data/rbi/openai/models/decision_input_text.rbi +21 -1
- data/rbi/openai/models/decision_prompt_cache_breakpoint.rbi +48 -0
- data/rbi/openai/models/live/output_audio_delta_event.rbi +1 -1
- data/rbi/openai/models/live/sideband_server_event.rbi +406 -3
- data/rbi/openai/models.rbi +2 -0
- data/rbi/openai/resources/beta/responses.rbi +17 -0
- data/rbi/openai/resources/decisions.rbi +14 -0
- data/sig/openai/models/admin/organization/external_storage_configuration.rbs +2 -1
- data/sig/openai/models/beta/agent_create_params.rbs +5 -1
- data/sig/openai/models/beta/agent_update_params.rbs +5 -1
- data/sig/openai/models/beta/agents/session_create_params.rbs +5 -1
- data/sig/openai/models/beta/agents/session_update_params.rbs +5 -1
- data/sig/openai/models/decision_create_params.rbs +106 -0
- data/sig/openai/models/decision_input_image.rbs +18 -2
- data/sig/openai/models/decision_input_text.rbs +29 -3
- data/sig/openai/models/decision_prompt_cache_breakpoint.rbs +16 -0
- data/sig/openai/models/live/sideband_server_event.rbs +225 -0
- data/sig/openai/models.rbs +2 -0
- data/sig/openai/resources/beta/responses.rbs +7 -0
- data/sig/openai/resources/decisions.rbs +3 -0
- metadata +4 -1
|
@@ -5,6 +5,9 @@ module OpenAI
|
|
|
5
5
|
input: OpenAI::Models::DecisionCreateParams::input,
|
|
6
6
|
model: String,
|
|
7
7
|
questions: ::Array[OpenAI::Models::DecisionCreateParams::question],
|
|
8
|
+
?prompt_cache_key: String?,
|
|
9
|
+
?prompt_cache_options: (OpenAI::DecisionCreateParams::PromptCacheOptions
|
|
10
|
+
| OpenAI::Models::DecisionCreateParams::prompt_cache_options)?,
|
|
8
11
|
?safety_identifier: String?,
|
|
9
12
|
?request_options: OpenAI::request_opts
|
|
10
13
|
}
|
|
@@ -26,6 +29,21 @@ module OpenAI
|
|
|
26
29
|
# or score. Answers come back in the same order.
|
|
27
30
|
attr_accessor questions: ::Array[OpenAI::Models::DecisionCreateParams::question]
|
|
28
31
|
|
|
32
|
+
# Partition prompt cache reuse by caller-provided key.
|
|
33
|
+
attr_accessor prompt_cache_key: String?
|
|
34
|
+
|
|
35
|
+
# Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
36
|
+
# default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
37
|
+
# explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
38
|
+
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
39
|
+
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
40
|
+
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
41
|
+
# `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
42
|
+
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
43
|
+
# for current details.
|
|
44
|
+
attr_accessor prompt_cache_options: (OpenAI::DecisionCreateParams::PromptCacheOptions
|
|
45
|
+
| OpenAI::Models::DecisionCreateParams::prompt_cache_options)?
|
|
46
|
+
|
|
29
47
|
# Opaque caller-provided end-user identifier, scoped by the verified org. Match
|
|
30
48
|
# Responses' limit; this is never the authenticated user identity.
|
|
31
49
|
attr_accessor safety_identifier: String?
|
|
@@ -40,6 +58,18 @@ module OpenAI
|
|
|
40
58
|
# @param questions
|
|
41
59
|
# Ask 1–200 questions about the input. Each question can be a predicate, choice,
|
|
42
60
|
# or score. Answers come back in the same order.
|
|
61
|
+
# @param prompt_cache_key
|
|
62
|
+
# Partition prompt cache reuse by caller-provided key.
|
|
63
|
+
# @param prompt_cache_options
|
|
64
|
+
# Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
65
|
+
# default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
66
|
+
# explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
67
|
+
# request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
68
|
+
# up to the latest 80 breakpoints in the conversation, without a content-block
|
|
69
|
+
# lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
70
|
+
# `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
71
|
+
# [prompt caching guide](https://developers.openai.com/api/docs/guides/prompt-caching)
|
|
72
|
+
# for current details.
|
|
43
73
|
# @param safety_identifier
|
|
44
74
|
# Opaque caller-provided end-user identifier, scoped by the verified org. Match
|
|
45
75
|
# Responses' limit; this is never the authenticated user identity.
|
|
@@ -47,6 +77,9 @@ module OpenAI
|
|
|
47
77
|
input: OpenAI::Models::DecisionCreateParams::input,
|
|
48
78
|
model: String,
|
|
49
79
|
questions: ::Array[OpenAI::Models::DecisionCreateParams::question],
|
|
80
|
+
?prompt_cache_key: String?,
|
|
81
|
+
?prompt_cache_options: (OpenAI::DecisionCreateParams::PromptCacheOptions
|
|
82
|
+
| OpenAI::Models::DecisionCreateParams::prompt_cache_options)?,
|
|
50
83
|
?safety_identifier: String?,
|
|
51
84
|
?request_options: OpenAI::request_opts
|
|
52
85
|
) -> void
|
|
@@ -55,6 +88,9 @@ module OpenAI
|
|
|
55
88
|
input: OpenAI::Models::DecisionCreateParams::input,
|
|
56
89
|
model: String,
|
|
57
90
|
questions: ::Array[OpenAI::Models::DecisionCreateParams::question],
|
|
91
|
+
?prompt_cache_key: String?,
|
|
92
|
+
?prompt_cache_options: (OpenAI::DecisionCreateParams::PromptCacheOptions
|
|
93
|
+
| OpenAI::Models::DecisionCreateParams::prompt_cache_options)?,
|
|
58
94
|
?safety_identifier: String?,
|
|
59
95
|
?request_options: OpenAI::RequestOptions
|
|
60
96
|
}
|
|
@@ -233,6 +269,76 @@ module OpenAI
|
|
|
233
269
|
|
|
234
270
|
def self?.variants: -> ::Array[OpenAI::Models::DecisionCreateParams::question]
|
|
235
271
|
end
|
|
272
|
+
|
|
273
|
+
type prompt_cache_options =
|
|
274
|
+
{
|
|
275
|
+
?mode: OpenAI::Models::DecisionCreateParams::PromptCacheOptions::mode?,
|
|
276
|
+
?ttl: OpenAI::Models::DecisionCreateParams::PromptCacheOptions::ttl
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
class PromptCacheOptions < OpenAI::Internal::Type::BaseModel
|
|
280
|
+
# Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
281
|
+
# Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
282
|
+
# and writes up to the latest three explicit breakpoints in the request. With
|
|
283
|
+
# `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
284
|
+
# latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
285
|
+
# request does not use prompt caching.
|
|
286
|
+
attr_accessor mode: OpenAI::Models::DecisionCreateParams::PromptCacheOptions::mode?
|
|
287
|
+
|
|
288
|
+
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
289
|
+
# written by the request. Defaults to `30m`, which is currently the only supported
|
|
290
|
+
# value. The backend may retain cache entries for longer.
|
|
291
|
+
attr_reader ttl: OpenAI::Models::DecisionCreateParams::PromptCacheOptions::ttl?
|
|
292
|
+
|
|
293
|
+
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
294
|
+
# written by the request. Defaults to `30m`, which is currently the only supported
|
|
295
|
+
# value. The backend may retain cache entries for longer.
|
|
296
|
+
def ttl=: (
|
|
297
|
+
OpenAI::Models::DecisionCreateParams::PromptCacheOptions::ttl
|
|
298
|
+
) -> OpenAI::Models::DecisionCreateParams::PromptCacheOptions::ttl
|
|
299
|
+
|
|
300
|
+
# @param mode
|
|
301
|
+
# Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
302
|
+
# Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
303
|
+
# and writes up to the latest three explicit breakpoints in the request. With
|
|
304
|
+
# `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
305
|
+
# latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
306
|
+
# request does not use prompt caching.
|
|
307
|
+
# @param ttl
|
|
308
|
+
# The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
309
|
+
# written by the request. Defaults to `30m`, which is currently the only supported
|
|
310
|
+
# value. The backend may retain cache entries for longer.
|
|
311
|
+
def initialize: (
|
|
312
|
+
?mode: OpenAI::Models::DecisionCreateParams::PromptCacheOptions::mode?,
|
|
313
|
+
?ttl: OpenAI::Models::DecisionCreateParams::PromptCacheOptions::ttl
|
|
314
|
+
) -> void
|
|
315
|
+
|
|
316
|
+
def to_hash: -> {
|
|
317
|
+
?mode: OpenAI::Models::DecisionCreateParams::PromptCacheOptions::mode?,
|
|
318
|
+
?ttl: OpenAI::Models::DecisionCreateParams::PromptCacheOptions::ttl
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
type mode = :implicit | :explicit
|
|
322
|
+
|
|
323
|
+
module Mode
|
|
324
|
+
extend OpenAI::Internal::Type::Enum
|
|
325
|
+
|
|
326
|
+
IMPLICIT: :implicit
|
|
327
|
+
EXPLICIT: :explicit
|
|
328
|
+
|
|
329
|
+
def self?.values: -> ::Array[OpenAI::Models::DecisionCreateParams::PromptCacheOptions::mode]
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
type ttl = :"30m"
|
|
333
|
+
|
|
334
|
+
module Ttl
|
|
335
|
+
extend OpenAI::Internal::Type::Enum
|
|
336
|
+
|
|
337
|
+
TTL_30M: :"30m"
|
|
338
|
+
|
|
339
|
+
def self?.values: -> ::Array[OpenAI::Models::DecisionCreateParams::PromptCacheOptions::ttl]
|
|
340
|
+
end
|
|
341
|
+
end
|
|
236
342
|
end
|
|
237
343
|
end
|
|
238
344
|
end
|
|
@@ -4,7 +4,9 @@ module OpenAI
|
|
|
4
4
|
{
|
|
5
5
|
image_url: String,
|
|
6
6
|
?type: :input_image,
|
|
7
|
-
?detail: OpenAI::Models::DecisionInputImage::detail
|
|
7
|
+
?detail: OpenAI::Models::DecisionInputImage::detail?,
|
|
8
|
+
?prompt_cache_breakpoint: (OpenAI::DecisionPromptCacheBreakpoint
|
|
9
|
+
| OpenAI::Models::decision_prompt_cache_breakpoint)?
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
class DecisionInputImage < OpenAI::Internal::Type::BaseModel
|
|
@@ -17,21 +19,35 @@ module OpenAI
|
|
|
17
19
|
# auto.
|
|
18
20
|
attr_accessor detail: OpenAI::Models::DecisionInputImage::detail?
|
|
19
21
|
|
|
22
|
+
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
23
|
+
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
24
|
+
# token block.
|
|
25
|
+
attr_accessor prompt_cache_breakpoint: (OpenAI::DecisionPromptCacheBreakpoint
|
|
26
|
+
| OpenAI::Models::decision_prompt_cache_breakpoint)?
|
|
27
|
+
|
|
20
28
|
# @param image_url
|
|
21
29
|
# A base64-encoded image in a data URL or a publicly accessible HTTP(S) image URL.
|
|
22
30
|
# @param detail
|
|
23
31
|
# The image detail level, using the selected model's image profile. Defaults to
|
|
24
32
|
# auto.
|
|
33
|
+
# @param prompt_cache_breakpoint
|
|
34
|
+
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
35
|
+
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
36
|
+
# token block.
|
|
25
37
|
def initialize: (
|
|
26
38
|
image_url: String,
|
|
27
39
|
?detail: OpenAI::Models::DecisionInputImage::detail?,
|
|
40
|
+
?prompt_cache_breakpoint: (OpenAI::DecisionPromptCacheBreakpoint
|
|
41
|
+
| OpenAI::Models::decision_prompt_cache_breakpoint)?,
|
|
28
42
|
?type: :input_image
|
|
29
43
|
) -> void
|
|
30
44
|
|
|
31
45
|
def to_hash: -> {
|
|
32
46
|
image_url: String,
|
|
33
47
|
?type: :input_image,
|
|
34
|
-
?detail: OpenAI::Models::DecisionInputImage::detail
|
|
48
|
+
?detail: OpenAI::Models::DecisionInputImage::detail?,
|
|
49
|
+
?prompt_cache_breakpoint: (OpenAI::DecisionPromptCacheBreakpoint
|
|
50
|
+
| OpenAI::Models::decision_prompt_cache_breakpoint)?
|
|
35
51
|
}
|
|
36
52
|
|
|
37
53
|
type detail = :low | :high | :auto | :original
|
|
@@ -1,15 +1,41 @@
|
|
|
1
1
|
module OpenAI
|
|
2
2
|
module Models
|
|
3
|
-
type decision_input_text =
|
|
3
|
+
type decision_input_text =
|
|
4
|
+
{
|
|
5
|
+
text: String,
|
|
6
|
+
?type: :input_text,
|
|
7
|
+
?prompt_cache_breakpoint: (OpenAI::DecisionPromptCacheBreakpoint
|
|
8
|
+
| OpenAI::Models::decision_prompt_cache_breakpoint)?
|
|
9
|
+
}
|
|
4
10
|
|
|
5
11
|
class DecisionInputText < OpenAI::Internal::Type::BaseModel
|
|
6
12
|
attr_accessor text: String
|
|
7
13
|
|
|
8
14
|
attr_accessor type: :input_text
|
|
9
15
|
|
|
10
|
-
|
|
16
|
+
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
17
|
+
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
18
|
+
# token block.
|
|
19
|
+
attr_accessor prompt_cache_breakpoint: (OpenAI::DecisionPromptCacheBreakpoint
|
|
20
|
+
| OpenAI::Models::decision_prompt_cache_breakpoint)?
|
|
11
21
|
|
|
12
|
-
|
|
22
|
+
# @param prompt_cache_breakpoint
|
|
23
|
+
# Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL
|
|
24
|
+
# from the request's `prompt_cache_options.ttl`; the boundary is not rounded to a
|
|
25
|
+
# token block.
|
|
26
|
+
def initialize: (
|
|
27
|
+
text: String,
|
|
28
|
+
?prompt_cache_breakpoint: (OpenAI::DecisionPromptCacheBreakpoint
|
|
29
|
+
| OpenAI::Models::decision_prompt_cache_breakpoint)?,
|
|
30
|
+
?type: :input_text
|
|
31
|
+
) -> void
|
|
32
|
+
|
|
33
|
+
def to_hash: -> {
|
|
34
|
+
text: String,
|
|
35
|
+
?type: :input_text,
|
|
36
|
+
?prompt_cache_breakpoint: (OpenAI::DecisionPromptCacheBreakpoint
|
|
37
|
+
| OpenAI::Models::decision_prompt_cache_breakpoint)?
|
|
38
|
+
}
|
|
13
39
|
end
|
|
14
40
|
end
|
|
15
41
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
type decision_prompt_cache_breakpoint = { ?mode: :explicit }
|
|
4
|
+
|
|
5
|
+
class DecisionPromptCacheBreakpoint < OpenAI::Internal::Type::BaseModel
|
|
6
|
+
# The breakpoint mode. Always `explicit`.
|
|
7
|
+
attr_accessor mode: :explicit
|
|
8
|
+
|
|
9
|
+
# @param mode
|
|
10
|
+
# The breakpoint mode. Always `explicit`.
|
|
11
|
+
def initialize: (?mode: :explicit) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { ?mode: :explicit }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -22,10 +22,235 @@ module OpenAI
|
|
|
22
22
|
| OpenAI::Live::SessionClosedEvent
|
|
23
23
|
| OpenAI::Live::ErrorEvent
|
|
24
24
|
| OpenAI::Live::InfoEvent
|
|
25
|
+
| OpenAI::Live::SidebandServerEvent::SessionInputAudioAppend
|
|
26
|
+
| OpenAI::Live::OutputAudioDeltaEvent
|
|
27
|
+
| OpenAI::Live::SidebandServerEvent::TransportDtmfReceived
|
|
28
|
+
| OpenAI::Live::SidebandServerEvent::TransportDtmfSend
|
|
29
|
+
| OpenAI::Live::SidebandServerEvent::TransportRinging
|
|
30
|
+
| OpenAI::Live::SidebandServerEvent::TransportAnswered
|
|
31
|
+
| OpenAI::Live::SidebandServerEvent::TransportFailed
|
|
25
32
|
|
|
26
33
|
module SidebandServerEvent
|
|
27
34
|
extend OpenAI::Internal::Type::Union
|
|
28
35
|
|
|
36
|
+
type session_input_audio_append =
|
|
37
|
+
{ audio: String, ?type: :"session.input_audio.append" }
|
|
38
|
+
|
|
39
|
+
class SessionInputAudioAppend < OpenAI::Internal::Type::BaseModel
|
|
40
|
+
# Base64-encoded raw mono PCM16LE at 24 kHz received from the primary transport,
|
|
41
|
+
# reflected to the sideband before model-input muting. This server event uses the
|
|
42
|
+
# same audio key as the client command, but is not an acknowledgment of it.
|
|
43
|
+
attr_accessor audio: String
|
|
44
|
+
|
|
45
|
+
# The event type, always `session.input_audio.append`.
|
|
46
|
+
attr_accessor type: :"session.input_audio.append"
|
|
47
|
+
|
|
48
|
+
# @param audio
|
|
49
|
+
# Base64-encoded raw mono PCM16LE at 24 kHz received from the primary transport,
|
|
50
|
+
# reflected to the sideband before model-input muting. This server event uses the
|
|
51
|
+
# same audio key as the client command, but is not an acknowledgment of it.
|
|
52
|
+
# @param type
|
|
53
|
+
# The event type, always `session.input_audio.append`.
|
|
54
|
+
def initialize: (
|
|
55
|
+
audio: String,
|
|
56
|
+
?type: :"session.input_audio.append"
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
audio: String,
|
|
61
|
+
?type: :"session.input_audio.append"
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
type transport_dtmf_received =
|
|
66
|
+
{ event: String, event_id: String, ?type: :"transport.dtmf.received" }
|
|
67
|
+
|
|
68
|
+
class TransportDtmfReceived < OpenAI::Internal::Type::BaseModel
|
|
69
|
+
attr_accessor event: String
|
|
70
|
+
|
|
71
|
+
attr_accessor event_id: String
|
|
72
|
+
|
|
73
|
+
attr_accessor type: :"transport.dtmf.received"
|
|
74
|
+
|
|
75
|
+
def initialize: (
|
|
76
|
+
event: String,
|
|
77
|
+
event_id: String,
|
|
78
|
+
?type: :"transport.dtmf.received"
|
|
79
|
+
) -> void
|
|
80
|
+
|
|
81
|
+
def to_hash: -> {
|
|
82
|
+
event: String,
|
|
83
|
+
event_id: String,
|
|
84
|
+
?type: :"transport.dtmf.received"
|
|
85
|
+
}
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
type transport_dtmf_send =
|
|
89
|
+
{
|
|
90
|
+
event: String,
|
|
91
|
+
event_id: String,
|
|
92
|
+
?type: :"transport.dtmf.send",
|
|
93
|
+
?client_event_id: String
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
class TransportDtmfSend < OpenAI::Internal::Type::BaseModel
|
|
97
|
+
attr_accessor event: String
|
|
98
|
+
|
|
99
|
+
attr_accessor event_id: String
|
|
100
|
+
|
|
101
|
+
attr_accessor type: :"transport.dtmf.send"
|
|
102
|
+
|
|
103
|
+
# The event_id of the client command, when supplied.
|
|
104
|
+
attr_reader client_event_id: String?
|
|
105
|
+
|
|
106
|
+
# The event_id of the client command, when supplied.
|
|
107
|
+
def client_event_id=: (String) -> String
|
|
108
|
+
|
|
109
|
+
# @param client_event_id
|
|
110
|
+
# The event_id of the client command, when supplied.
|
|
111
|
+
def initialize: (
|
|
112
|
+
event: String,
|
|
113
|
+
event_id: String,
|
|
114
|
+
?client_event_id: String,
|
|
115
|
+
?type: :"transport.dtmf.send"
|
|
116
|
+
) -> void
|
|
117
|
+
|
|
118
|
+
def to_hash: -> {
|
|
119
|
+
event: String,
|
|
120
|
+
event_id: String,
|
|
121
|
+
?type: :"transport.dtmf.send",
|
|
122
|
+
?client_event_id: String
|
|
123
|
+
}
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
type transport_ringing =
|
|
127
|
+
{ event_id: String, session_id: String, ?type: :"transport.ringing" }
|
|
128
|
+
|
|
129
|
+
class TransportRinging < OpenAI::Internal::Type::BaseModel
|
|
130
|
+
attr_accessor event_id: String
|
|
131
|
+
|
|
132
|
+
# The canonical Live session ID.
|
|
133
|
+
attr_accessor session_id: String
|
|
134
|
+
|
|
135
|
+
attr_accessor type: :"transport.ringing"
|
|
136
|
+
|
|
137
|
+
# @param session_id
|
|
138
|
+
# The canonical Live session ID.
|
|
139
|
+
def initialize: (
|
|
140
|
+
event_id: String,
|
|
141
|
+
session_id: String,
|
|
142
|
+
?type: :"transport.ringing"
|
|
143
|
+
) -> void
|
|
144
|
+
|
|
145
|
+
def to_hash: -> {
|
|
146
|
+
event_id: String,
|
|
147
|
+
session_id: String,
|
|
148
|
+
?type: :"transport.ringing"
|
|
149
|
+
}
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
type transport_answered =
|
|
153
|
+
{ event_id: String, session_id: String, ?type: :"transport.answered" }
|
|
154
|
+
|
|
155
|
+
class TransportAnswered < OpenAI::Internal::Type::BaseModel
|
|
156
|
+
attr_accessor event_id: String
|
|
157
|
+
|
|
158
|
+
# The canonical Live session ID.
|
|
159
|
+
attr_accessor session_id: String
|
|
160
|
+
|
|
161
|
+
attr_accessor type: :"transport.answered"
|
|
162
|
+
|
|
163
|
+
# @param session_id
|
|
164
|
+
# The canonical Live session ID.
|
|
165
|
+
def initialize: (
|
|
166
|
+
event_id: String,
|
|
167
|
+
session_id: String,
|
|
168
|
+
?type: :"transport.answered"
|
|
169
|
+
) -> void
|
|
170
|
+
|
|
171
|
+
def to_hash: -> {
|
|
172
|
+
event_id: String,
|
|
173
|
+
session_id: String,
|
|
174
|
+
?type: :"transport.answered"
|
|
175
|
+
}
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
type transport_failed =
|
|
179
|
+
{
|
|
180
|
+
error: OpenAI::Live::SidebandServerEvent::TransportFailed::Error,
|
|
181
|
+
event_id: String,
|
|
182
|
+
session_id: String,
|
|
183
|
+
?type: :"transport.failed"
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
class TransportFailed < OpenAI::Internal::Type::BaseModel
|
|
187
|
+
attr_accessor error: OpenAI::Live::SidebandServerEvent::TransportFailed::Error
|
|
188
|
+
|
|
189
|
+
attr_accessor event_id: String
|
|
190
|
+
|
|
191
|
+
# The canonical Live session ID.
|
|
192
|
+
attr_accessor session_id: String
|
|
193
|
+
|
|
194
|
+
attr_accessor type: :"transport.failed"
|
|
195
|
+
|
|
196
|
+
# @param session_id
|
|
197
|
+
# The canonical Live session ID.
|
|
198
|
+
def initialize: (
|
|
199
|
+
error: OpenAI::Live::SidebandServerEvent::TransportFailed::Error,
|
|
200
|
+
event_id: String,
|
|
201
|
+
session_id: String,
|
|
202
|
+
?type: :"transport.failed"
|
|
203
|
+
) -> void
|
|
204
|
+
|
|
205
|
+
def to_hash: -> {
|
|
206
|
+
error: OpenAI::Live::SidebandServerEvent::TransportFailed::Error,
|
|
207
|
+
event_id: String,
|
|
208
|
+
session_id: String,
|
|
209
|
+
?type: :"transport.failed"
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
type error =
|
|
213
|
+
{
|
|
214
|
+
code: String,
|
|
215
|
+
message: String,
|
|
216
|
+
?type: :call_error,
|
|
217
|
+
?param: String
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
class Error < OpenAI::Internal::Type::BaseModel
|
|
221
|
+
# The call setup failure code.
|
|
222
|
+
attr_accessor code: String
|
|
223
|
+
|
|
224
|
+
attr_accessor message: String
|
|
225
|
+
|
|
226
|
+
attr_accessor type: :call_error
|
|
227
|
+
|
|
228
|
+
# The parameter related to the error, if any. Empty when no parameter applies.
|
|
229
|
+
attr_reader param: String?
|
|
230
|
+
|
|
231
|
+
# The parameter related to the error, if any. Empty when no parameter applies.
|
|
232
|
+
def param=: (String) -> String
|
|
233
|
+
|
|
234
|
+
# @param code
|
|
235
|
+
# The call setup failure code.
|
|
236
|
+
# @param param
|
|
237
|
+
# The parameter related to the error, if any. Empty when no parameter applies.
|
|
238
|
+
def initialize: (
|
|
239
|
+
code: String,
|
|
240
|
+
message: String,
|
|
241
|
+
?param: String,
|
|
242
|
+
?type: :call_error
|
|
243
|
+
) -> void
|
|
244
|
+
|
|
245
|
+
def to_hash: -> {
|
|
246
|
+
code: String,
|
|
247
|
+
message: String,
|
|
248
|
+
?type: :call_error,
|
|
249
|
+
?param: String
|
|
250
|
+
}
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
29
254
|
def self?.variants: -> ::Array[OpenAI::Models::Live::sideband_server_event]
|
|
30
255
|
end
|
|
31
256
|
end
|
data/sig/openai/models.rbs
CHANGED
|
@@ -77,6 +77,8 @@ module OpenAI
|
|
|
77
77
|
|
|
78
78
|
class DecisionInputText = OpenAI::Models::DecisionInputText
|
|
79
79
|
|
|
80
|
+
class DecisionPromptCacheBreakpoint = OpenAI::Models::DecisionPromptCacheBreakpoint
|
|
81
|
+
|
|
80
82
|
class DeletedSkill = OpenAI::Models::DeletedSkill
|
|
81
83
|
|
|
82
84
|
class Embedding = OpenAI::Models::Embedding
|
|
@@ -2,6 +2,13 @@ module OpenAI
|
|
|
2
2
|
module Resources
|
|
3
3
|
class Beta
|
|
4
4
|
class Responses
|
|
5
|
+
include OpenAI::WebSocket::Resource
|
|
6
|
+
def __websocket_request: (
|
|
7
|
+
?query: Hash[untyped, untyped]
|
|
8
|
+
) -> Hash[Symbol, untyped]
|
|
9
|
+
def __websocket_client_event: -> untyped
|
|
10
|
+
def __websocket_server_event: -> untyped
|
|
11
|
+
|
|
5
12
|
attr_reader input_items: OpenAI::Resources::Beta::Responses::InputItems
|
|
6
13
|
|
|
7
14
|
attr_reader input_tokens: OpenAI::Resources::Beta::Responses::InputTokens
|
|
@@ -5,6 +5,9 @@ module OpenAI
|
|
|
5
5
|
input: OpenAI::Models::DecisionCreateParams::input,
|
|
6
6
|
model: String,
|
|
7
7
|
questions: ::Array[OpenAI::Models::DecisionCreateParams::question],
|
|
8
|
+
?prompt_cache_key: String?,
|
|
9
|
+
?prompt_cache_options: (OpenAI::DecisionCreateParams::PromptCacheOptions
|
|
10
|
+
| OpenAI::Models::DecisionCreateParams::prompt_cache_options)?,
|
|
8
11
|
?safety_identifier: String?,
|
|
9
12
|
?request_options: OpenAI::request_opts
|
|
10
13
|
) -> OpenAI::Decision
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.106.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAI
|
|
@@ -1014,6 +1014,7 @@ files:
|
|
|
1014
1014
|
- lib/openai/models/decision_input_message.rb
|
|
1015
1015
|
- lib/openai/models/decision_input_part.rb
|
|
1016
1016
|
- lib/openai/models/decision_input_text.rb
|
|
1017
|
+
- lib/openai/models/decision_prompt_cache_breakpoint.rb
|
|
1017
1018
|
- lib/openai/models/deleted_skill.rb
|
|
1018
1019
|
- lib/openai/models/embedding.rb
|
|
1019
1020
|
- lib/openai/models/embedding_create_params.rb
|
|
@@ -2668,6 +2669,7 @@ files:
|
|
|
2668
2669
|
- rbi/openai/models/decision_input_message.rbi
|
|
2669
2670
|
- rbi/openai/models/decision_input_part.rbi
|
|
2670
2671
|
- rbi/openai/models/decision_input_text.rbi
|
|
2672
|
+
- rbi/openai/models/decision_prompt_cache_breakpoint.rbi
|
|
2671
2673
|
- rbi/openai/models/deleted_skill.rbi
|
|
2672
2674
|
- rbi/openai/models/embedding.rbi
|
|
2673
2675
|
- rbi/openai/models/embedding_create_params.rbi
|
|
@@ -4311,6 +4313,7 @@ files:
|
|
|
4311
4313
|
- sig/openai/models/decision_input_message.rbs
|
|
4312
4314
|
- sig/openai/models/decision_input_part.rbs
|
|
4313
4315
|
- sig/openai/models/decision_input_text.rbs
|
|
4316
|
+
- sig/openai/models/decision_prompt_cache_breakpoint.rbs
|
|
4314
4317
|
- sig/openai/models/deleted_skill.rbs
|
|
4315
4318
|
- sig/openai/models/embedding.rbs
|
|
4316
4319
|
- sig/openai/models/embedding_create_params.rbs
|