openai 1.0.0 → 1.2.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 +30 -0
- data/README.md +4 -4
- data/lib/openai/helpers/agents/session_stream.rb +5 -0
- data/lib/openai/helpers/beta/agents/result.rb +8 -0
- data/lib/openai/models/all_models.rb +4 -0
- data/lib/openai/models/beta/agent_session.rb +40 -1
- data/lib/openai/models/beta/agent_session_budget_reached_event.rb +48 -0
- data/lib/openai/models/beta/agent_session_event.rb +4 -1
- data/lib/openai/models/beta/agents/session_create_params.rb +33 -1
- data/lib/openai/models/beta/agents/session_update_params.rb +33 -1
- data/lib/openai/models/beta/beta_response.rb +12 -0
- data/lib/openai/models/beta/beta_responses_client_event.rb +28 -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/beta/session_turn_error.rb +3 -0
- data/lib/openai/models/responses/response_compact_params.rb +12 -0
- data/lib/openai/models/responses_model.rb +4 -0
- data/lib/openai/resources/beta/agents/sessions/events.rb +1 -1
- data/lib/openai/resources/beta/agents/sessions.rb +15 -3
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +1 -0
- data/rbi/openai/models/all_models.rbi +7 -0
- data/rbi/openai/models/beta/agent_session.rbi +66 -0
- data/rbi/openai/models/beta/agent_session_budget_reached_event.rbi +83 -0
- data/rbi/openai/models/beta/agent_session_event.rbi +1 -0
- data/rbi/openai/models/beta/agents/session_create_params.rbi +56 -0
- data/rbi/openai/models/beta/agents/session_update_params.rbi +56 -0
- data/rbi/openai/models/beta/beta_response.rbi +4 -0
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +16 -0
- data/rbi/openai/models/beta/response_compact_params.rbi +16 -0
- data/rbi/openai/models/beta/response_create_params.rbi +16 -0
- data/rbi/openai/models/beta/session_turn_error.rbi +3 -0
- data/rbi/openai/models/responses/response_compact_params.rbi +16 -0
- data/rbi/openai/models/responses_model.rbi +16 -0
- data/rbi/openai/resources/beta/agents/sessions.rbi +12 -0
- data/sig/openai/models/all_models.rbs +8 -0
- data/sig/openai/models/beta/agent_session.rbs +33 -1
- data/sig/openai/models/beta/agent_session_budget_reached_event.rbs +52 -0
- data/sig/openai/models/beta/agent_session_event.rbs +1 -0
- data/sig/openai/models/beta/agents/session_create_params.rbs +23 -0
- data/sig/openai/models/beta/agents/session_update_params.rbs +23 -0
- data/sig/openai/models/beta/beta_response.rbs +8 -0
- data/sig/openai/models/beta/beta_responses_client_event.rbs +8 -0
- data/sig/openai/models/beta/response_compact_params.rbs +8 -0
- data/sig/openai/models/beta/response_create_params.rbs +8 -0
- data/sig/openai/models/beta/session_turn_error.rbs +4 -0
- data/sig/openai/models/responses/response_compact_params.rbs +8 -0
- data/sig/openai/models/responses_model.rbs +8 -0
- data/sig/openai/resources/beta/agents/sessions.rbs +3 -0
- metadata +4 -1
|
@@ -12,6 +12,7 @@ module OpenAI
|
|
|
12
12
|
metadata: ::Hash[Symbol, String],
|
|
13
13
|
?object: :"agent.session",
|
|
14
14
|
required_actions: ::Array[OpenAI::Models::Beta::AgentSession::required_action],
|
|
15
|
+
spend_control: OpenAI::Beta::AgentSession::SpendControl,
|
|
15
16
|
status: OpenAI::Models::Beta::AgentSession::status,
|
|
16
17
|
usage: OpenAI::Beta::TokenUsage?,
|
|
17
18
|
vault_ids: ::Array[String],
|
|
@@ -47,6 +48,10 @@ module OpenAI
|
|
|
47
48
|
# Actions that must be completed before the session can continue.
|
|
48
49
|
attr_accessor required_actions: ::Array[OpenAI::Models::Beta::AgentSession::required_action]
|
|
49
50
|
|
|
51
|
+
# Spending limit and best-effort consumption, in USD cents. The limit is null for
|
|
52
|
+
# an unlimited session. Consumption is null when unavailable.
|
|
53
|
+
attr_accessor spend_control: OpenAI::Beta::AgentSession::SpendControl
|
|
54
|
+
|
|
50
55
|
# The current status of the session.
|
|
51
56
|
attr_accessor status: OpenAI::Models::Beta::AgentSession::status
|
|
52
57
|
|
|
@@ -86,6 +91,9 @@ module OpenAI
|
|
|
86
91
|
# Custom string key-value pairs attached to the session.
|
|
87
92
|
# @param required_actions
|
|
88
93
|
# Actions that must be completed before the session can continue.
|
|
94
|
+
# @param spend_control
|
|
95
|
+
# Spending limit and best-effort consumption, in USD cents. The limit is null for
|
|
96
|
+
# an unlimited session. Consumption is null when unavailable.
|
|
89
97
|
# @param status
|
|
90
98
|
# The current status of the session.
|
|
91
99
|
# @param usage
|
|
@@ -109,6 +117,7 @@ module OpenAI
|
|
|
109
117
|
last_active_at: Integer,
|
|
110
118
|
metadata: ::Hash[Symbol, String],
|
|
111
119
|
required_actions: ::Array[OpenAI::Models::Beta::AgentSession::required_action],
|
|
120
|
+
spend_control: OpenAI::Beta::AgentSession::SpendControl,
|
|
112
121
|
status: OpenAI::Models::Beta::AgentSession::status,
|
|
113
122
|
usage: OpenAI::Beta::TokenUsage?,
|
|
114
123
|
vault_ids: ::Array[String],
|
|
@@ -127,6 +136,7 @@ module OpenAI
|
|
|
127
136
|
metadata: ::Hash[Symbol, String],
|
|
128
137
|
?object: :"agent.session",
|
|
129
138
|
required_actions: ::Array[OpenAI::Models::Beta::AgentSession::required_action],
|
|
139
|
+
spend_control: OpenAI::Beta::AgentSession::SpendControl,
|
|
130
140
|
status: OpenAI::Models::Beta::AgentSession::status,
|
|
131
141
|
usage: OpenAI::Beta::TokenUsage?,
|
|
132
142
|
vault_ids: ::Array[String],
|
|
@@ -680,7 +690,26 @@ module OpenAI
|
|
|
680
690
|
def self?.variants: -> ::Array[OpenAI::Models::Beta::AgentSession::required_action]
|
|
681
691
|
end
|
|
682
692
|
|
|
683
|
-
type
|
|
693
|
+
type spend_control = { consumed: Integer?, limit: Integer? }
|
|
694
|
+
|
|
695
|
+
class SpendControl < OpenAI::Internal::Type::BaseModel
|
|
696
|
+
# Best-effort recorded spend floored to whole USD cents, or null when unavailable.
|
|
697
|
+
attr_accessor consumed: Integer?
|
|
698
|
+
|
|
699
|
+
# The configured positive limit in USD cents, or null when unlimited.
|
|
700
|
+
attr_accessor limit: Integer?
|
|
701
|
+
|
|
702
|
+
# @param consumed
|
|
703
|
+
# Best-effort recorded spend floored to whole USD cents, or null when unavailable.
|
|
704
|
+
# @param limit
|
|
705
|
+
# The configured positive limit in USD cents, or null when unlimited.
|
|
706
|
+
def initialize: (consumed: Integer?, limit: Integer?) -> void
|
|
707
|
+
|
|
708
|
+
def to_hash: -> { consumed: Integer?, limit: Integer? }
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
type status =
|
|
712
|
+
:idle | :in_progress | :requires_action | :failed | :budget_reached
|
|
684
713
|
|
|
685
714
|
module Status
|
|
686
715
|
extend OpenAI::Internal::Type::Enum
|
|
@@ -697,6 +726,9 @@ module OpenAI
|
|
|
697
726
|
# The session failed.
|
|
698
727
|
FAILED: :failed
|
|
699
728
|
|
|
729
|
+
# The session is paused because its spending limit was reached.
|
|
730
|
+
BUDGET_REACHED: :budget_reached
|
|
731
|
+
|
|
700
732
|
def self?.values: -> ::Array[OpenAI::Models::Beta::AgentSession::status]
|
|
701
733
|
end
|
|
702
734
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Beta
|
|
4
|
+
type agent_session_budget_reached_event =
|
|
5
|
+
{
|
|
6
|
+
event_id: String,
|
|
7
|
+
session: OpenAI::Beta::AgentSession,
|
|
8
|
+
?type: :"agent.session.budget_reached",
|
|
9
|
+
?obfuscation: String
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class AgentSessionBudgetReachedEvent < OpenAI::Internal::Type::BaseModel
|
|
13
|
+
# The unique ID of the event.
|
|
14
|
+
attr_accessor event_id: String
|
|
15
|
+
|
|
16
|
+
# The paused session.
|
|
17
|
+
attr_accessor session: OpenAI::Beta::AgentSession
|
|
18
|
+
|
|
19
|
+
# The type of the object. Always `agent.session.budget_reached`.
|
|
20
|
+
attr_accessor type: :"agent.session.budget_reached"
|
|
21
|
+
|
|
22
|
+
# Random alphanumeric padding. Present when stream obfuscation is enabled.
|
|
23
|
+
attr_reader obfuscation: String?
|
|
24
|
+
|
|
25
|
+
# Random alphanumeric padding. Present when stream obfuscation is enabled.
|
|
26
|
+
def obfuscation=: (String) -> String
|
|
27
|
+
|
|
28
|
+
# @param event_id
|
|
29
|
+
# The unique ID of the event.
|
|
30
|
+
# @param session
|
|
31
|
+
# The paused session.
|
|
32
|
+
# @param obfuscation
|
|
33
|
+
# Random alphanumeric padding. Present when stream obfuscation is enabled.
|
|
34
|
+
# @param type
|
|
35
|
+
# The type of the object. Always `agent.session.budget_reached`.
|
|
36
|
+
def initialize: (
|
|
37
|
+
event_id: String,
|
|
38
|
+
session: OpenAI::Beta::AgentSession,
|
|
39
|
+
?obfuscation: String,
|
|
40
|
+
?type: :"agent.session.budget_reached"
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
event_id: String,
|
|
45
|
+
session: OpenAI::Beta::AgentSession,
|
|
46
|
+
?type: :"agent.session.budget_reached",
|
|
47
|
+
?obfuscation: String
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -16,6 +16,7 @@ module OpenAI
|
|
|
16
16
|
| OpenAI::Beta::AgentSessionTurnCancelledEvent
|
|
17
17
|
| OpenAI::Beta::AgentSessionTurnItemAddedEvent
|
|
18
18
|
| OpenAI::Beta::AgentSessionIdleEvent
|
|
19
|
+
| OpenAI::Beta::AgentSessionBudgetReachedEvent
|
|
19
20
|
| OpenAI::Beta::AgentSessionInProgressEvent
|
|
20
21
|
| OpenAI::Beta::AgentSessionRequiresActionEvent
|
|
21
22
|
| OpenAI::Beta::AgentSessionFailedEvent
|
|
@@ -11,6 +11,7 @@ module OpenAI
|
|
|
11
11
|
?metadata: ::Hash[Symbol, String]?,
|
|
12
12
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionCreateParams::PromptCacheOptions?,
|
|
13
13
|
?review: OpenAI::Models::Beta::Agents::SessionCreateParams::review,
|
|
14
|
+
?spend_control: OpenAI::Beta::Agents::SessionCreateParams::SpendControl?,
|
|
14
15
|
?stream_options: OpenAI::Beta::Agents::SessionCreateParams::StreamOptions,
|
|
15
16
|
?vault_ids: ::Array[String]?,
|
|
16
17
|
?request_options: OpenAI::request_opts
|
|
@@ -63,6 +64,10 @@ module OpenAI
|
|
|
63
64
|
OpenAI::Models::Beta::Agents::SessionCreateParams::review
|
|
64
65
|
) -> OpenAI::Models::Beta::Agents::SessionCreateParams::review
|
|
65
66
|
|
|
67
|
+
# Optional spending limit in USD cents. Omission or null creates an unlimited
|
|
68
|
+
# session.
|
|
69
|
+
attr_accessor spend_control: OpenAI::Beta::Agents::SessionCreateParams::SpendControl?
|
|
70
|
+
|
|
66
71
|
# Options for the event stream. Only allowed when `stream` is `true`.
|
|
67
72
|
attr_reader stream_options: OpenAI::Beta::Agents::SessionCreateParams::StreamOptions?
|
|
68
73
|
|
|
@@ -95,6 +100,9 @@ module OpenAI
|
|
|
95
100
|
# default.
|
|
96
101
|
# @param review
|
|
97
102
|
# Action review mode. Omit to use none.
|
|
103
|
+
# @param spend_control
|
|
104
|
+
# Optional spending limit in USD cents. Omission or null creates an unlimited
|
|
105
|
+
# session.
|
|
98
106
|
# @param stream_options
|
|
99
107
|
# Options for the event stream. Only allowed when `stream` is `true`.
|
|
100
108
|
# @param vault_ids
|
|
@@ -107,6 +115,7 @@ module OpenAI
|
|
|
107
115
|
?metadata: ::Hash[Symbol, String]?,
|
|
108
116
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionCreateParams::PromptCacheOptions?,
|
|
109
117
|
?review: OpenAI::Models::Beta::Agents::SessionCreateParams::review,
|
|
118
|
+
?spend_control: OpenAI::Beta::Agents::SessionCreateParams::SpendControl?,
|
|
110
119
|
?stream_options: OpenAI::Beta::Agents::SessionCreateParams::StreamOptions,
|
|
111
120
|
?vault_ids: ::Array[String]?,
|
|
112
121
|
?request_options: OpenAI::request_opts
|
|
@@ -120,6 +129,7 @@ module OpenAI
|
|
|
120
129
|
?metadata: ::Hash[Symbol, String]?,
|
|
121
130
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionCreateParams::PromptCacheOptions?,
|
|
122
131
|
?review: OpenAI::Models::Beta::Agents::SessionCreateParams::review,
|
|
132
|
+
?spend_control: OpenAI::Beta::Agents::SessionCreateParams::SpendControl?,
|
|
123
133
|
?stream_options: OpenAI::Beta::Agents::SessionCreateParams::StreamOptions,
|
|
124
134
|
?vault_ids: ::Array[String]?,
|
|
125
135
|
?request_options: OpenAI::RequestOptions
|
|
@@ -354,6 +364,19 @@ module OpenAI
|
|
|
354
364
|
def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::SessionCreateParams::review]
|
|
355
365
|
end
|
|
356
366
|
|
|
367
|
+
type spend_control = { limit: Integer? }
|
|
368
|
+
|
|
369
|
+
class SpendControl < OpenAI::Internal::Type::BaseModel
|
|
370
|
+
# Positive USD cents, or null to remove the limit.
|
|
371
|
+
attr_accessor limit: Integer?
|
|
372
|
+
|
|
373
|
+
# @param limit
|
|
374
|
+
# Positive USD cents, or null to remove the limit.
|
|
375
|
+
def initialize: (limit: Integer?) -> void
|
|
376
|
+
|
|
377
|
+
def to_hash: -> { limit: Integer? }
|
|
378
|
+
end
|
|
379
|
+
|
|
357
380
|
type stream_options = { ?include_obfuscation: bool }
|
|
358
381
|
|
|
359
382
|
class StreamOptions < OpenAI::Internal::Type::BaseModel
|
|
@@ -9,6 +9,7 @@ module OpenAI
|
|
|
9
9
|
?metadata: ::Hash[Symbol, String]?,
|
|
10
10
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
|
|
11
11
|
?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
|
|
12
|
+
?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
|
|
12
13
|
?request_options: OpenAI::request_opts
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -45,6 +46,10 @@ module OpenAI
|
|
|
45
46
|
OpenAI::Models::Beta::Agents::SessionUpdateParams::review
|
|
46
47
|
) -> OpenAI::Models::Beta::Agents::SessionUpdateParams::review
|
|
47
48
|
|
|
49
|
+
# Omit to retain the limit; null or a null limit removes it without resetting
|
|
50
|
+
# spend.
|
|
51
|
+
attr_accessor spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?
|
|
52
|
+
|
|
48
53
|
# @param agent
|
|
49
54
|
# Agent settings to update on this session. Omitted fields stay unchanged.
|
|
50
55
|
# @param metadata
|
|
@@ -57,12 +62,16 @@ module OpenAI
|
|
|
57
62
|
# @param review
|
|
58
63
|
# Default action review for new root turns. Existing turns and their subagents
|
|
59
64
|
# keep their review mode.
|
|
65
|
+
# @param spend_control
|
|
66
|
+
# Omit to retain the limit; null or a null limit removes it without resetting
|
|
67
|
+
# spend.
|
|
60
68
|
def initialize: (
|
|
61
69
|
session_id: String,
|
|
62
70
|
?agent: OpenAI::Beta::Agents::SessionUpdateParams::Agent,
|
|
63
71
|
?metadata: ::Hash[Symbol, String]?,
|
|
64
72
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
|
|
65
73
|
?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
|
|
74
|
+
?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
|
|
66
75
|
?request_options: OpenAI::request_opts
|
|
67
76
|
) -> void
|
|
68
77
|
|
|
@@ -72,6 +81,7 @@ module OpenAI
|
|
|
72
81
|
?metadata: ::Hash[Symbol, String]?,
|
|
73
82
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
|
|
74
83
|
?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
|
|
84
|
+
?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
|
|
75
85
|
?request_options: OpenAI::RequestOptions
|
|
76
86
|
}
|
|
77
87
|
|
|
@@ -244,6 +254,19 @@ module OpenAI
|
|
|
244
254
|
|
|
245
255
|
def self?.values: -> ::Array[OpenAI::Models::Beta::Agents::SessionUpdateParams::review]
|
|
246
256
|
end
|
|
257
|
+
|
|
258
|
+
type spend_control = { limit: Integer? }
|
|
259
|
+
|
|
260
|
+
class SpendControl < OpenAI::Internal::Type::BaseModel
|
|
261
|
+
# Positive USD cents, or null to remove the limit.
|
|
262
|
+
attr_accessor limit: Integer?
|
|
263
|
+
|
|
264
|
+
# @param limit
|
|
265
|
+
# Positive USD cents, or null to remove the limit.
|
|
266
|
+
def initialize: (limit: Integer?) -> void
|
|
267
|
+
|
|
268
|
+
def to_hash: -> { limit: Integer? }
|
|
269
|
+
end
|
|
247
270
|
end
|
|
248
271
|
end
|
|
249
272
|
end
|
|
@@ -864,6 +864,10 @@ module OpenAI
|
|
|
864
864
|
| :"gpt-6-cyber"
|
|
865
865
|
| :"gpt-rosalind-research"
|
|
866
866
|
| :"gpt-6.2-astra-law"
|
|
867
|
+
| :"gpt-6-astra-healthcare"
|
|
868
|
+
| :"gpt-6.1-sol-healthcare"
|
|
869
|
+
| :"gpt-6.2-astra-healthcare"
|
|
870
|
+
| :"gpt-6.2-sol-healthcare"
|
|
867
871
|
| String
|
|
868
872
|
|
|
869
873
|
module Model
|
|
@@ -982,6 +986,10 @@ module OpenAI
|
|
|
982
986
|
GPT_6_CYBER: :"gpt-6-cyber"
|
|
983
987
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
984
988
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
989
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
990
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
991
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
992
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
985
993
|
end
|
|
986
994
|
|
|
987
995
|
type tool_choice =
|
|
@@ -1087,6 +1087,10 @@ module OpenAI
|
|
|
1087
1087
|
| :"gpt-rosalind-research"
|
|
1088
1088
|
| :"gpt-6-rosalind"
|
|
1089
1089
|
| :"gpt-6.2-astra-law"
|
|
1090
|
+
| :"gpt-6-astra-healthcare"
|
|
1091
|
+
| :"gpt-6.1-sol-healthcare"
|
|
1092
|
+
| :"gpt-6.2-astra-healthcare"
|
|
1093
|
+
| :"gpt-6.2-sol-healthcare"
|
|
1090
1094
|
| String
|
|
1091
1095
|
|
|
1092
1096
|
module Model
|
|
@@ -1206,6 +1210,10 @@ module OpenAI
|
|
|
1206
1210
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
1207
1211
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
1208
1212
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
1213
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
1214
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
1215
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
1216
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
1209
1217
|
end
|
|
1210
1218
|
|
|
1211
1219
|
type moderation =
|
|
@@ -283,6 +283,10 @@ module OpenAI
|
|
|
283
283
|
| :"gpt-rosalind-research"
|
|
284
284
|
| :"gpt-6-rosalind"
|
|
285
285
|
| :"gpt-6.2-astra-law"
|
|
286
|
+
| :"gpt-6-astra-healthcare"
|
|
287
|
+
| :"gpt-6.1-sol-healthcare"
|
|
288
|
+
| :"gpt-6.2-astra-healthcare"
|
|
289
|
+
| :"gpt-6.2-sol-healthcare"
|
|
286
290
|
| String
|
|
287
291
|
|
|
288
292
|
module Model
|
|
@@ -402,6 +406,10 @@ module OpenAI
|
|
|
402
406
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
403
407
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
404
408
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
409
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
410
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
411
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
412
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
405
413
|
end
|
|
406
414
|
|
|
407
415
|
type image =
|
|
@@ -1027,6 +1027,10 @@ module OpenAI
|
|
|
1027
1027
|
| :"gpt-rosalind-research"
|
|
1028
1028
|
| :"gpt-6-rosalind"
|
|
1029
1029
|
| :"gpt-6.2-astra-law"
|
|
1030
|
+
| :"gpt-6-astra-healthcare"
|
|
1031
|
+
| :"gpt-6.1-sol-healthcare"
|
|
1032
|
+
| :"gpt-6.2-astra-healthcare"
|
|
1033
|
+
| :"gpt-6.2-sol-healthcare"
|
|
1030
1034
|
| String
|
|
1031
1035
|
|
|
1032
1036
|
module Model
|
|
@@ -1146,6 +1150,10 @@ module OpenAI
|
|
|
1146
1150
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
1147
1151
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
1148
1152
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
1153
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
1154
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
1155
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
1156
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
1149
1157
|
end
|
|
1150
1158
|
|
|
1151
1159
|
type moderation =
|
|
@@ -28,6 +28,7 @@ module OpenAI
|
|
|
28
28
|
type code =
|
|
29
29
|
:context_length_exceeded
|
|
30
30
|
| :max_output_tokens
|
|
31
|
+
| :session_budget_exceeded
|
|
31
32
|
| :usage_limit_exceeded
|
|
32
33
|
| :project_spend_limit_exceeded
|
|
33
34
|
| :organization_spend_limit_exceeded
|
|
@@ -59,6 +60,9 @@ module OpenAI
|
|
|
59
60
|
# The model reached its output token limit before finishing the response.
|
|
60
61
|
MAX_OUTPUT_TOKENS: :max_output_tokens
|
|
61
62
|
|
|
63
|
+
# The session has reached its usage budget.
|
|
64
|
+
SESSION_BUDGET_EXCEEDED: :session_budget_exceeded
|
|
65
|
+
|
|
62
66
|
# The organization has reached a usage, plan, or billing limit.
|
|
63
67
|
USAGE_LIMIT_EXCEEDED: :usage_limit_exceeded
|
|
64
68
|
|
|
@@ -274,6 +274,10 @@ module OpenAI
|
|
|
274
274
|
| :"gpt-rosalind-research"
|
|
275
275
|
| :"gpt-6-rosalind"
|
|
276
276
|
| :"gpt-6.2-astra-law"
|
|
277
|
+
| :"gpt-6-astra-healthcare"
|
|
278
|
+
| :"gpt-6.1-sol-healthcare"
|
|
279
|
+
| :"gpt-6.2-astra-healthcare"
|
|
280
|
+
| :"gpt-6.2-sol-healthcare"
|
|
277
281
|
| String
|
|
278
282
|
|
|
279
283
|
module Model
|
|
@@ -393,6 +397,10 @@ module OpenAI
|
|
|
393
397
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
394
398
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
395
399
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
400
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
401
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
402
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
403
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
396
404
|
end
|
|
397
405
|
|
|
398
406
|
type image =
|
|
@@ -32,6 +32,10 @@ module OpenAI
|
|
|
32
32
|
| :"gpt-rosalind-research"
|
|
33
33
|
| :"gpt-6-rosalind"
|
|
34
34
|
| :"gpt-6.2-astra-law"
|
|
35
|
+
| :"gpt-6-astra-healthcare"
|
|
36
|
+
| :"gpt-6.1-sol-healthcare"
|
|
37
|
+
| :"gpt-6.2-astra-healthcare"
|
|
38
|
+
| :"gpt-6.2-sol-healthcare"
|
|
35
39
|
|
|
36
40
|
module ResponsesOnlyModel
|
|
37
41
|
extend OpenAI::Internal::Type::Enum
|
|
@@ -59,6 +63,10 @@ module OpenAI
|
|
|
59
63
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
60
64
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
61
65
|
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
66
|
+
GPT_6_ASTRA_HEALTHCARE: :"gpt-6-astra-healthcare"
|
|
67
|
+
GPT_6_1_SOL_HEALTHCARE: :"gpt-6.1-sol-healthcare"
|
|
68
|
+
GPT_6_2_ASTRA_HEALTHCARE: :"gpt-6.2-astra-healthcare"
|
|
69
|
+
GPT_6_2_SOL_HEALTHCARE: :"gpt-6.2-sol-healthcare"
|
|
62
70
|
|
|
63
71
|
def self?.values: -> ::Array[OpenAI::Models::ResponsesModel::responses_only_model]
|
|
64
72
|
end
|
|
@@ -23,6 +23,7 @@ module OpenAI
|
|
|
23
23
|
?metadata: ::Hash[Symbol, String]?,
|
|
24
24
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionCreateParams::PromptCacheOptions?,
|
|
25
25
|
?review: OpenAI::Models::Beta::Agents::SessionCreateParams::review,
|
|
26
|
+
?spend_control: OpenAI::Beta::Agents::SessionCreateParams::SpendControl?,
|
|
26
27
|
?stream_options: OpenAI::Beta::Agents::SessionCreateParams::StreamOptions,
|
|
27
28
|
?vault_ids: ::Array[String]?,
|
|
28
29
|
?request_options: OpenAI::request_opts
|
|
@@ -38,6 +39,7 @@ module OpenAI
|
|
|
38
39
|
?metadata: ::Hash[Symbol, String]?,
|
|
39
40
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionCreateParams::PromptCacheOptions?,
|
|
40
41
|
?review: OpenAI::Models::Beta::Agents::SessionCreateParams::review,
|
|
42
|
+
?spend_control: OpenAI::Beta::Agents::SessionCreateParams::SpendControl?,
|
|
41
43
|
?stream_options: OpenAI::Beta::Agents::SessionCreateParams::StreamOptions,
|
|
42
44
|
?vault_ids: ::Array[String]?,
|
|
43
45
|
?request_options: OpenAI::request_opts
|
|
@@ -54,6 +56,7 @@ module OpenAI
|
|
|
54
56
|
?metadata: ::Hash[Symbol, String]?,
|
|
55
57
|
?prompt_cache_options: OpenAI::Beta::Agents::SessionUpdateParams::PromptCacheOptions?,
|
|
56
58
|
?review: OpenAI::Models::Beta::Agents::SessionUpdateParams::review,
|
|
59
|
+
?spend_control: OpenAI::Beta::Agents::SessionUpdateParams::SpendControl?,
|
|
57
60
|
?request_options: OpenAI::request_opts
|
|
58
61
|
) -> OpenAI::Beta::AgentSession
|
|
59
62
|
|
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: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAI
|
|
@@ -538,6 +538,7 @@ files:
|
|
|
538
538
|
- lib/openai/models/beta/agent_send_subagent_input_call_item.rb
|
|
539
539
|
- lib/openai/models/beta/agent_session.rb
|
|
540
540
|
- lib/openai/models/beta/agent_session_assistant_message.rb
|
|
541
|
+
- lib/openai/models/beta/agent_session_budget_reached_event.rb
|
|
541
542
|
- lib/openai/models/beta/agent_session_created_event.rb
|
|
542
543
|
- lib/openai/models/beta/agent_session_deleted.rb
|
|
543
544
|
- lib/openai/models/beta/agent_session_environment_connected_event.rb
|
|
@@ -2167,6 +2168,7 @@ files:
|
|
|
2167
2168
|
- rbi/openai/models/beta/agent_send_subagent_input_call_item.rbi
|
|
2168
2169
|
- rbi/openai/models/beta/agent_session.rbi
|
|
2169
2170
|
- rbi/openai/models/beta/agent_session_assistant_message.rbi
|
|
2171
|
+
- rbi/openai/models/beta/agent_session_budget_reached_event.rbi
|
|
2170
2172
|
- rbi/openai/models/beta/agent_session_created_event.rbi
|
|
2171
2173
|
- rbi/openai/models/beta/agent_session_deleted.rbi
|
|
2172
2174
|
- rbi/openai/models/beta/agent_session_environment_connected_event.rbi
|
|
@@ -3783,6 +3785,7 @@ files:
|
|
|
3783
3785
|
- sig/openai/models/beta/agent_send_subagent_input_call_item.rbs
|
|
3784
3786
|
- sig/openai/models/beta/agent_session.rbs
|
|
3785
3787
|
- sig/openai/models/beta/agent_session_assistant_message.rbs
|
|
3788
|
+
- sig/openai/models/beta/agent_session_budget_reached_event.rbs
|
|
3786
3789
|
- sig/openai/models/beta/agent_session_created_event.rbs
|
|
3787
3790
|
- sig/openai/models/beta/agent_session_deleted.rbs
|
|
3788
3791
|
- sig/openai/models/beta/agent_session_environment_connected_event.rbs
|