openai 0.124.0 → 0.126.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 +18 -0
- data/README.md +1 -1
- data/lib/openai/internal/stream.rb +1 -1
- data/lib/openai/internal/transport/base_client.rb +11 -2
- data/lib/openai/internal/type/base_stream.rb +10 -0
- data/lib/openai/models/all_models.rb +1 -0
- data/lib/openai/models/beta/agent.rb +2 -2
- data/lib/openai/models/beta/agent_create_params.rb +9 -9
- data/lib/openai/models/beta/agent_session.rb +2 -2
- data/lib/openai/models/beta/agent_update_params.rb +9 -12
- data/lib/openai/models/beta/agents/automation_agent_config.rb +2 -2
- data/lib/openai/models/beta/agents/automation_target_param.rb +9 -12
- data/lib/openai/models/beta/agents/one_time_automation.rb +28 -1
- data/lib/openai/models/beta/agents/periodic_automation.rb +28 -1
- data/lib/openai/models/beta/agents/session_create_params.rb +9 -12
- data/lib/openai/models/beta/beta_response.rb +9 -0
- data/lib/openai/models/beta/beta_responses_client_event.rb +76 -1
- data/lib/openai/models/beta/response_compact_params.rb +9 -0
- data/lib/openai/models/beta/response_create_params.rb +70 -1
- data/lib/openai/models/chat_model.rb +2 -0
- data/lib/openai/models/live/session_config.rb +12 -1
- data/lib/openai/models/live/session_resource.rb +12 -1
- data/lib/openai/models/responses/response_compact_params.rb +9 -0
- data/lib/openai/models/responses/response_create_params.rb +61 -1
- data/lib/openai/models/responses/responses_client_event.rb +65 -1
- data/lib/openai/models/responses_model.rb +1 -0
- data/lib/openai/resources/beta/agents/sessions/events.rb +1 -0
- data/lib/openai/resources/beta/agents/sessions.rb +1 -0
- data/lib/openai/resources/beta/agents.rb +2 -3
- data/lib/openai/resources/beta/responses.rb +12 -2
- data/lib/openai/resources/responses.rb +12 -2
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/internal/transport/base_client.rbi +4 -1
- data/rbi/openai/internal/type/base_stream.rbi +5 -0
- data/rbi/openai/models/all_models.rbi +1 -0
- data/rbi/openai/models/beta/agent.rbi +2 -2
- data/rbi/openai/models/beta/agent_create_params.rbi +9 -9
- data/rbi/openai/models/beta/agent_session.rbi +2 -2
- data/rbi/openai/models/beta/agent_update_params.rbi +9 -12
- data/rbi/openai/models/beta/agents/automation_agent_config.rbi +2 -2
- data/rbi/openai/models/beta/agents/automation_target_param.rbi +9 -12
- data/rbi/openai/models/beta/agents/one_time_automation.rbi +28 -1
- data/rbi/openai/models/beta/agents/periodic_automation.rbi +28 -1
- data/rbi/openai/models/beta/agents/session_create_params.rbi +9 -12
- data/rbi/openai/models/beta/beta_response.rbi +3 -0
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +145 -0
- data/rbi/openai/models/beta/response_compact_params.rbi +3 -0
- data/rbi/openai/models/beta/response_create_params.rbi +116 -0
- data/rbi/openai/models/chat_model.rbi +2 -0
- data/rbi/openai/models/live/session_config.rbi +12 -0
- data/rbi/openai/models/live/session_resource.rbi +12 -0
- data/rbi/openai/models/responses/response_compact_params.rbi +3 -0
- data/rbi/openai/models/responses/response_create_params.rbi +117 -0
- data/rbi/openai/models/responses/responses_client_event.rbi +135 -0
- data/rbi/openai/models/responses_model.rbi +1 -0
- data/rbi/openai/resources/beta/agents.rbi +2 -3
- data/rbi/openai/resources/beta/responses.rbi +10 -0
- data/rbi/openai/resources/responses.rbi +12 -0
- data/sig/openai/internal/transport/base_client.rbs +1 -0
- data/sig/openai/internal/type/base_stream.rbs +2 -0
- data/sig/openai/models/all_models.rbs +2 -0
- data/sig/openai/models/beta/agent.rbs +2 -2
- data/sig/openai/models/beta/agent_create_params.rbs +8 -8
- data/sig/openai/models/beta/agent_session.rbs +2 -2
- data/sig/openai/models/beta/agent_update_params.rbs +8 -10
- data/sig/openai/models/beta/agents/automation_agent_config.rbs +2 -2
- data/sig/openai/models/beta/agents/automation_target_param.rbs +8 -10
- data/sig/openai/models/beta/agents/one_time_automation.rbs +20 -2
- data/sig/openai/models/beta/agents/periodic_automation.rbs +20 -2
- data/sig/openai/models/beta/agents/session_create_params.rbs +8 -10
- data/sig/openai/models/beta/beta_response.rbs +6 -0
- data/sig/openai/models/beta/beta_responses_client_event.rbs +79 -0
- data/sig/openai/models/beta/response_compact_params.rbs +6 -0
- data/sig/openai/models/beta/response_create_params.rbs +79 -0
- data/sig/openai/models/chat_model.rbs +4 -0
- data/sig/openai/models/live/session_config.rbs +10 -0
- data/sig/openai/models/live/session_resource.rbs +10 -0
- data/sig/openai/models/responses/response_compact_params.rbs +6 -0
- data/sig/openai/models/responses/response_create_params.rbs +73 -0
- data/sig/openai/models/responses/responses_client_event.rbs +73 -0
- data/sig/openai/models/responses_model.rbs +2 -0
- data/sig/openai/resources/beta/responses.rbs +2 -0
- data/sig/openai/resources/responses.rbs +3 -0
- metadata +1 -1
|
@@ -46,7 +46,7 @@ module OpenAI
|
|
|
46
46
|
# [file search](https://developers.openai.com/api/docs/guides/tools-file-search)
|
|
47
47
|
# to use your own data as input for the model's response.
|
|
48
48
|
#
|
|
49
|
-
# @overload create(access_programs: nil, background: nil, context_management: nil, conversation: nil, image: nil, include: nil, input: nil, instructions: nil, max_output_tokens: nil, max_tool_calls: nil, metadata: nil, model: nil, moderation: nil, multi_agent: nil, parallel_tool_calls: nil, previous_response_id: nil, prompt: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, reasoning: nil, safety_identifier: nil, service_tier: nil, store: nil, stream_options: nil, temperature: nil, text: nil, tool_choice: nil, tools: nil, top_logprobs: nil, top_p: nil, truncation: nil, user: nil, betas: nil, request_options: {})
|
|
49
|
+
# @overload create(access_programs: nil, background: nil, background_options: nil, context_management: nil, conversation: nil, image: nil, include: nil, input: nil, instructions: nil, max_output_tokens: nil, max_tool_calls: nil, metadata: nil, model: nil, moderation: nil, multi_agent: nil, parallel_tool_calls: nil, previous_response_id: nil, prompt: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, reasoning: nil, safety_identifier: nil, service_tier: nil, store: nil, stream_options: nil, temperature: nil, text: nil, tool_choice: nil, tools: nil, top_logprobs: nil, top_p: nil, truncation: nil, user: nil, betas: nil, request_options: {})
|
|
50
50
|
#
|
|
51
51
|
# @param access_programs [OpenAI::Models::Beta::ResponseCreateParams::AccessPrograms]
|
|
52
52
|
# Body param: Domain-specific access programs to use for this request.
|
|
@@ -55,6 +55,11 @@ module OpenAI
|
|
|
55
55
|
# Body param: Whether to run the model response in the background.
|
|
56
56
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
57
57
|
#
|
|
58
|
+
# @param background_options [OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions]
|
|
59
|
+
# Body param: Options for background execution on HTTP requests. The `2h` and `8h`
|
|
60
|
+
# completion windows require `background: true`, Standard processing, and
|
|
61
|
+
# `stream: false` or omitted.
|
|
62
|
+
#
|
|
58
63
|
# @param context_management [Array<OpenAI::Models::Beta::ResponseCreateParams::ContextManagement>, nil]
|
|
59
64
|
# Body param: Context management configuration for this request.
|
|
60
65
|
#
|
|
@@ -352,7 +357,7 @@ module OpenAI
|
|
|
352
357
|
# [file search](https://developers.openai.com/api/docs/guides/tools-file-search)
|
|
353
358
|
# to use your own data as input for the model's response.
|
|
354
359
|
#
|
|
355
|
-
# @overload stream_raw(access_programs: nil, background: nil, context_management: nil, conversation: nil, image: nil, include: nil, input: nil, instructions: nil, max_output_tokens: nil, max_tool_calls: nil, metadata: nil, model: nil, moderation: nil, multi_agent: nil, parallel_tool_calls: nil, previous_response_id: nil, prompt: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, reasoning: nil, safety_identifier: nil, service_tier: nil, store: nil, stream_options: nil, temperature: nil, text: nil, tool_choice: nil, tools: nil, top_logprobs: nil, top_p: nil, truncation: nil, user: nil, betas: nil, request_options: {})
|
|
360
|
+
# @overload stream_raw(access_programs: nil, background: nil, background_options: nil, context_management: nil, conversation: nil, image: nil, include: nil, input: nil, instructions: nil, max_output_tokens: nil, max_tool_calls: nil, metadata: nil, model: nil, moderation: nil, multi_agent: nil, parallel_tool_calls: nil, previous_response_id: nil, prompt: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, reasoning: nil, safety_identifier: nil, service_tier: nil, store: nil, stream_options: nil, temperature: nil, text: nil, tool_choice: nil, tools: nil, top_logprobs: nil, top_p: nil, truncation: nil, user: nil, betas: nil, request_options: {})
|
|
356
361
|
#
|
|
357
362
|
# @param access_programs [OpenAI::Models::Beta::ResponseCreateParams::AccessPrograms]
|
|
358
363
|
# Body param: Domain-specific access programs to use for this request.
|
|
@@ -361,6 +366,11 @@ module OpenAI
|
|
|
361
366
|
# Body param: Whether to run the model response in the background.
|
|
362
367
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
363
368
|
#
|
|
369
|
+
# @param background_options [OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions]
|
|
370
|
+
# Body param: Options for background execution on HTTP requests. The `2h` and `8h`
|
|
371
|
+
# completion windows require `background: true`, Standard processing, and
|
|
372
|
+
# `stream: false` or omitted.
|
|
373
|
+
#
|
|
364
374
|
# @param context_management [Array<OpenAI::Models::Beta::ResponseCreateParams::ContextManagement>, nil]
|
|
365
375
|
# Body param: Context management configuration for this request.
|
|
366
376
|
#
|
|
@@ -47,7 +47,7 @@ module OpenAI
|
|
|
47
47
|
# [file search](https://developers.openai.com/api/docs/guides/tools-file-search)
|
|
48
48
|
# to use your own data as input for the model's response.
|
|
49
49
|
#
|
|
50
|
-
# @overload create(access_programs: nil, background: nil, context_management: nil, conversation: nil, image: nil, include: nil, input: nil, instructions: nil, max_output_tokens: nil, max_tool_calls: nil, metadata: nil, model: nil, moderation: nil, parallel_tool_calls: nil, previous_response_id: nil, prompt: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, reasoning: nil, safety_identifier: nil, service_tier: nil, store: nil, stream_options: nil, temperature: nil, text: nil, tool_choice: nil, tools: nil, top_logprobs: nil, top_p: nil, truncation: nil, user: nil, request_options: {})
|
|
50
|
+
# @overload create(access_programs: nil, background: nil, background_options: nil, context_management: nil, conversation: nil, image: nil, include: nil, input: nil, instructions: nil, max_output_tokens: nil, max_tool_calls: nil, metadata: nil, model: nil, moderation: nil, parallel_tool_calls: nil, previous_response_id: nil, prompt: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, reasoning: nil, safety_identifier: nil, service_tier: nil, store: nil, stream_options: nil, temperature: nil, text: nil, tool_choice: nil, tools: nil, top_logprobs: nil, top_p: nil, truncation: nil, user: nil, request_options: {})
|
|
51
51
|
#
|
|
52
52
|
# @param access_programs [OpenAI::Models::Responses::ResponseCreateParams::AccessPrograms]
|
|
53
53
|
# Domain-specific access programs to use for this request.
|
|
@@ -56,6 +56,11 @@ module OpenAI
|
|
|
56
56
|
# Whether to run the model response in the background.
|
|
57
57
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
58
58
|
#
|
|
59
|
+
# @param background_options [OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions]
|
|
60
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
61
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
62
|
+
# omitted.
|
|
63
|
+
#
|
|
59
64
|
# @param context_management [Array<OpenAI::Models::Responses::ResponseCreateParams::ContextManagement>, nil]
|
|
60
65
|
# Context management configuration for this request.
|
|
61
66
|
#
|
|
@@ -345,7 +350,7 @@ module OpenAI
|
|
|
345
350
|
# [file search](https://developers.openai.com/api/docs/guides/tools-file-search)
|
|
346
351
|
# to use your own data as input for the model's response.
|
|
347
352
|
#
|
|
348
|
-
# @overload stream_raw(access_programs: nil, background: nil, context_management: nil, conversation: nil, image: nil, include: nil, input: nil, instructions: nil, max_output_tokens: nil, max_tool_calls: nil, metadata: nil, model: nil, moderation: nil, parallel_tool_calls: nil, previous_response_id: nil, prompt: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, reasoning: nil, safety_identifier: nil, service_tier: nil, store: nil, stream_options: nil, temperature: nil, text: nil, tool_choice: nil, tools: nil, top_logprobs: nil, top_p: nil, truncation: nil, user: nil, request_options: {})
|
|
353
|
+
# @overload stream_raw(access_programs: nil, background: nil, background_options: nil, context_management: nil, conversation: nil, image: nil, include: nil, input: nil, instructions: nil, max_output_tokens: nil, max_tool_calls: nil, metadata: nil, model: nil, moderation: nil, parallel_tool_calls: nil, previous_response_id: nil, prompt: nil, prompt_cache_key: nil, prompt_cache_options: nil, prompt_cache_retention: nil, reasoning: nil, safety_identifier: nil, service_tier: nil, store: nil, stream_options: nil, temperature: nil, text: nil, tool_choice: nil, tools: nil, top_logprobs: nil, top_p: nil, truncation: nil, user: nil, request_options: {})
|
|
349
354
|
#
|
|
350
355
|
# @param access_programs [OpenAI::Models::Responses::ResponseCreateParams::AccessPrograms]
|
|
351
356
|
# Domain-specific access programs to use for this request.
|
|
@@ -354,6 +359,11 @@ module OpenAI
|
|
|
354
359
|
# Whether to run the model response in the background.
|
|
355
360
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
356
361
|
#
|
|
362
|
+
# @param background_options [OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions]
|
|
363
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
364
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
365
|
+
# omitted.
|
|
366
|
+
#
|
|
357
367
|
# @param context_management [Array<OpenAI::Models::Responses::ResponseCreateParams::ContextManagement>, nil]
|
|
358
368
|
# Context management configuration for this request.
|
|
359
369
|
#
|
data/lib/openai/version.rb
CHANGED
|
@@ -52,6 +52,7 @@ module OpenAI
|
|
|
52
52
|
]
|
|
53
53
|
]
|
|
54
54
|
),
|
|
55
|
+
stream_mode: T.nilable(Symbol),
|
|
55
56
|
model: T.nilable(OpenAI::Internal::Type::Converter::Input),
|
|
56
57
|
security: T.nilable(T::Hash[Symbol, T::Boolean]),
|
|
57
58
|
options: T.nilable(OpenAI::RequestOptions::OrHash)
|
|
@@ -340,7 +341,7 @@ module OpenAI
|
|
|
340
341
|
# Execute the request specified by `req`. This is the method that all resource
|
|
341
342
|
# methods call into.
|
|
342
343
|
#
|
|
343
|
-
# @overload request(method, path, query: {}, headers: {}, body: nil, unwrap: nil, page: nil, stream: nil, model: OpenAI::Internal::Type::Unknown, security: {bearer_auth: true, admin_api_key_auth: true}, options: {})
|
|
344
|
+
# @overload request(method, path, query: {}, headers: {}, body: nil, unwrap: nil, page: nil, stream: nil, stream_mode: nil, model: OpenAI::Internal::Type::Unknown, security: {bearer_auth: true, admin_api_key_auth: true}, options: {})
|
|
344
345
|
sig do
|
|
345
346
|
params(
|
|
346
347
|
method: Symbol,
|
|
@@ -384,6 +385,7 @@ module OpenAI
|
|
|
384
385
|
]
|
|
385
386
|
]
|
|
386
387
|
),
|
|
388
|
+
stream_mode: T.nilable(Symbol),
|
|
387
389
|
model: T.nilable(OpenAI::Internal::Type::Converter::Input),
|
|
388
390
|
security: T.nilable(T::Hash[Symbol, T::Boolean]),
|
|
389
391
|
options: T.nilable(OpenAI::RequestOptions::OrHash)
|
|
@@ -399,6 +401,7 @@ module OpenAI
|
|
|
399
401
|
unwrap: nil,
|
|
400
402
|
page: nil,
|
|
401
403
|
stream: nil,
|
|
404
|
+
stream_mode: nil,
|
|
402
405
|
model: OpenAI::Internal::Type::Unknown,
|
|
403
406
|
security: {bearer_auth: true, admin_api_key_auth: true},
|
|
404
407
|
options: {}
|
|
@@ -54,6 +54,7 @@ module OpenAI
|
|
|
54
54
|
GPT_6_CYBER = T.let(:"gpt-6-cyber", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
|
|
55
55
|
GPT_ROSALIND_RESEARCH = T.let(:"gpt-rosalind-research", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
|
|
56
56
|
GPT_6_ROSALIND = T.let(:"gpt-6-rosalind", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
|
|
57
|
+
GPT_6_2_ASTRA_LAW = T.let(:"gpt-6.2-astra-law", OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol)
|
|
57
58
|
|
|
58
59
|
sig { override.returns(T::Array[OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol]) }
|
|
59
60
|
def self.values
|
|
@@ -238,7 +238,7 @@ module OpenAI
|
|
|
238
238
|
)
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
-
# Whether context is compacted in the background. Defaults to
|
|
241
|
+
# Whether context is compacted in the background. Defaults to false.
|
|
242
242
|
sig { returns(T::Boolean) }
|
|
243
243
|
attr_accessor :async
|
|
244
244
|
|
|
@@ -252,7 +252,7 @@ module OpenAI
|
|
|
252
252
|
end
|
|
253
253
|
def self.new(
|
|
254
254
|
|
|
255
|
-
# Whether context is compacted in the background. Defaults to
|
|
255
|
+
# Whether context is compacted in the background. Defaults to false.
|
|
256
256
|
|
|
257
257
|
async:
|
|
258
258
|
)
|
|
@@ -21,7 +21,7 @@ module OpenAI
|
|
|
21
21
|
sig { returns(String) }
|
|
22
22
|
attr_accessor :model
|
|
23
23
|
|
|
24
|
-
# Context compaction settings. Omission or null
|
|
24
|
+
# Context compaction settings. Omission or null uses blocking compaction.
|
|
25
25
|
sig { returns(T.nilable(OpenAI::Beta::AgentCreateParams::Compaction)) }
|
|
26
26
|
attr_reader :compaction
|
|
27
27
|
|
|
@@ -143,7 +143,7 @@ module OpenAI
|
|
|
143
143
|
# The model to use for the agent. The requested model name is preserved.
|
|
144
144
|
model:,
|
|
145
145
|
|
|
146
|
-
# Context compaction settings. Omission or null
|
|
146
|
+
# Context compaction settings. Omission or null uses blocking compaction.
|
|
147
147
|
compaction: nil,
|
|
148
148
|
|
|
149
149
|
# Experimental agent settings. All experimental features default to disabled.
|
|
@@ -223,13 +223,13 @@ module OpenAI
|
|
|
223
223
|
)
|
|
224
224
|
end
|
|
225
225
|
|
|
226
|
-
# Whether to compact context in the background. Omission or null defaults to
|
|
227
|
-
# Set to
|
|
228
|
-
# token usage.
|
|
226
|
+
# Whether to compact context in the background. Omission or null defaults to
|
|
227
|
+
# false. Set to true to enable background compaction. Background compaction may
|
|
228
|
+
# increase token usage.
|
|
229
229
|
sig { returns(T.nilable(T::Boolean)) }
|
|
230
230
|
attr_accessor :async
|
|
231
231
|
|
|
232
|
-
# Context compaction settings. Omission or null
|
|
232
|
+
# Context compaction settings. Omission or null uses blocking compaction.
|
|
233
233
|
sig do
|
|
234
234
|
params(
|
|
235
235
|
|
|
@@ -239,9 +239,9 @@ module OpenAI
|
|
|
239
239
|
end
|
|
240
240
|
def self.new(
|
|
241
241
|
|
|
242
|
-
# Whether to compact context in the background. Omission or null defaults to
|
|
243
|
-
# Set to
|
|
244
|
-
# token usage.
|
|
242
|
+
# Whether to compact context in the background. Omission or null defaults to
|
|
243
|
+
# false. Set to true to enable background compaction. Background compaction may
|
|
244
|
+
# increase token usage.
|
|
245
245
|
|
|
246
246
|
async: nil
|
|
247
247
|
)
|
|
@@ -407,7 +407,7 @@ module OpenAI
|
|
|
407
407
|
)
|
|
408
408
|
end
|
|
409
409
|
|
|
410
|
-
# Whether context is compacted in the background. Defaults to
|
|
410
|
+
# Whether context is compacted in the background. Defaults to false.
|
|
411
411
|
sig { returns(T::Boolean) }
|
|
412
412
|
attr_accessor :async
|
|
413
413
|
|
|
@@ -421,7 +421,7 @@ module OpenAI
|
|
|
421
421
|
end
|
|
422
422
|
def self.new(
|
|
423
423
|
|
|
424
|
-
# Whether context is compacted in the background. Defaults to
|
|
424
|
+
# Whether context is compacted in the background. Defaults to false.
|
|
425
425
|
|
|
426
426
|
async:
|
|
427
427
|
)
|
|
@@ -21,8 +21,7 @@ module OpenAI
|
|
|
21
21
|
attr_accessor :agent_id
|
|
22
22
|
|
|
23
23
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
24
|
-
# object replaces the settings; null or an empty object
|
|
25
|
-
# compaction.
|
|
24
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
26
25
|
sig { returns(T.nilable(OpenAI::Beta::AgentUpdateParams::Compaction)) }
|
|
27
26
|
attr_reader :compaction
|
|
28
27
|
|
|
@@ -154,8 +153,7 @@ module OpenAI
|
|
|
154
153
|
agent_id:,
|
|
155
154
|
|
|
156
155
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
157
|
-
# object replaces the settings; null or an empty object
|
|
158
|
-
# compaction.
|
|
156
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
159
157
|
compaction: nil,
|
|
160
158
|
|
|
161
159
|
# Experimental settings to merge by key. Omitted settings keep their current
|
|
@@ -240,15 +238,14 @@ module OpenAI
|
|
|
240
238
|
)
|
|
241
239
|
end
|
|
242
240
|
|
|
243
|
-
# Whether to compact context in the background. Omission or null defaults to
|
|
244
|
-
# Set to
|
|
245
|
-
# token usage.
|
|
241
|
+
# Whether to compact context in the background. Omission or null defaults to
|
|
242
|
+
# false. Set to true to enable background compaction. Background compaction may
|
|
243
|
+
# increase token usage.
|
|
246
244
|
sig { returns(T.nilable(T::Boolean)) }
|
|
247
245
|
attr_accessor :async
|
|
248
246
|
|
|
249
247
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
250
|
-
# object replaces the settings; null or an empty object
|
|
251
|
-
# compaction.
|
|
248
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
252
249
|
sig do
|
|
253
250
|
params(
|
|
254
251
|
|
|
@@ -258,9 +255,9 @@ module OpenAI
|
|
|
258
255
|
end
|
|
259
256
|
def self.new(
|
|
260
257
|
|
|
261
|
-
# Whether to compact context in the background. Omission or null defaults to
|
|
262
|
-
# Set to
|
|
263
|
-
# token usage.
|
|
258
|
+
# Whether to compact context in the background. Omission or null defaults to
|
|
259
|
+
# false. Set to true to enable background compaction. Background compaction may
|
|
260
|
+
# increase token usage.
|
|
264
261
|
|
|
265
262
|
async: nil
|
|
266
263
|
)
|
|
@@ -177,7 +177,7 @@ module OpenAI
|
|
|
177
177
|
)
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
-
# Whether context is compacted in the background. Defaults to
|
|
180
|
+
# Whether context is compacted in the background. Defaults to false.
|
|
181
181
|
sig { returns(T::Boolean) }
|
|
182
182
|
attr_accessor :async
|
|
183
183
|
|
|
@@ -191,7 +191,7 @@ module OpenAI
|
|
|
191
191
|
end
|
|
192
192
|
def self.new(
|
|
193
193
|
|
|
194
|
-
# Whether context is compacted in the background. Defaults to
|
|
194
|
+
# Whether context is compacted in the background. Defaults to false.
|
|
195
195
|
|
|
196
196
|
async:
|
|
197
197
|
)
|
|
@@ -147,8 +147,7 @@ module OpenAI
|
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
150
|
-
# object replaces the settings; null or an empty object
|
|
151
|
-
# compaction.
|
|
150
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
152
151
|
sig { returns(T.nilable(OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent::Compaction)) }
|
|
153
152
|
attr_reader :compaction
|
|
154
153
|
|
|
@@ -282,8 +281,7 @@ module OpenAI
|
|
|
282
281
|
def self.new(
|
|
283
282
|
|
|
284
283
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
285
|
-
# object replaces the settings; null or an empty object
|
|
286
|
-
# compaction.
|
|
284
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
287
285
|
compaction: nil,
|
|
288
286
|
|
|
289
287
|
# Experimental settings to merge by key. Omitted settings keep their current
|
|
@@ -358,15 +356,14 @@ module OpenAI
|
|
|
358
356
|
)
|
|
359
357
|
end
|
|
360
358
|
|
|
361
|
-
# Whether to compact context in the background. Omission or null defaults to
|
|
362
|
-
# Set to
|
|
363
|
-
# token usage.
|
|
359
|
+
# Whether to compact context in the background. Omission or null defaults to
|
|
360
|
+
# false. Set to true to enable background compaction. Background compaction may
|
|
361
|
+
# increase token usage.
|
|
364
362
|
sig { returns(T.nilable(T::Boolean)) }
|
|
365
363
|
attr_accessor :async
|
|
366
364
|
|
|
367
365
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
368
|
-
# object replaces the settings; null or an empty object
|
|
369
|
-
# compaction.
|
|
366
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
370
367
|
sig do
|
|
371
368
|
params(
|
|
372
369
|
|
|
@@ -376,9 +373,9 @@ module OpenAI
|
|
|
376
373
|
end
|
|
377
374
|
def self.new(
|
|
378
375
|
|
|
379
|
-
# Whether to compact context in the background. Omission or null defaults to
|
|
380
|
-
# Set to
|
|
381
|
-
# token usage.
|
|
376
|
+
# Whether to compact context in the background. Omission or null defaults to
|
|
377
|
+
# false. Set to true to enable background compaction. Background compaction may
|
|
378
|
+
# increase token usage.
|
|
382
379
|
|
|
383
380
|
async: nil
|
|
384
381
|
)
|
|
@@ -56,6 +56,10 @@ module OpenAI
|
|
|
56
56
|
sig { returns(Symbol) }
|
|
57
57
|
attr_accessor :type
|
|
58
58
|
|
|
59
|
+
# Why the service paused this schedule, or null for other schedules.
|
|
60
|
+
sig { returns(T.nilable(OpenAI::Beta::Agents::OneTimeAutomation::PauseReason::TaggedSymbol)) }
|
|
61
|
+
attr_accessor :pause_reason
|
|
62
|
+
|
|
59
63
|
# Fields shared by periodic and one-time automations.
|
|
60
64
|
sig do
|
|
61
65
|
params(
|
|
@@ -82,6 +86,8 @@ module OpenAI
|
|
|
82
86
|
OpenAI::Beta::Agents::AutomationTarget::ExistingSession::OrHash
|
|
83
87
|
),
|
|
84
88
|
|
|
89
|
+
pause_reason: T.nilable(OpenAI::Beta::Agents::OneTimeAutomation::PauseReason::OrSymbol),
|
|
90
|
+
|
|
85
91
|
object: Symbol,
|
|
86
92
|
|
|
87
93
|
type: Symbol
|
|
@@ -114,6 +120,9 @@ module OpenAI
|
|
|
114
120
|
# The session configuration or existing session receiving invocations.
|
|
115
121
|
target:,
|
|
116
122
|
|
|
123
|
+
# Why the service paused this schedule, or null for other schedules.
|
|
124
|
+
pause_reason: nil,
|
|
125
|
+
|
|
117
126
|
# Always `agent.automation`.
|
|
118
127
|
object: :"agent.automation",
|
|
119
128
|
|
|
@@ -135,7 +144,8 @@ module OpenAI
|
|
|
135
144
|
run_at: Integer,
|
|
136
145
|
status: OpenAI::Beta::Agents::OneTimeAutomation::Status::TaggedSymbol,
|
|
137
146
|
target: OpenAI::Beta::Agents::AutomationTarget::Variants,
|
|
138
|
-
type: Symbol
|
|
147
|
+
type: Symbol,
|
|
148
|
+
pause_reason: T.nilable(OpenAI::Beta::Agents::OneTimeAutomation::PauseReason::TaggedSymbol)
|
|
139
149
|
}
|
|
140
150
|
)
|
|
141
151
|
end
|
|
@@ -158,6 +168,23 @@ module OpenAI
|
|
|
158
168
|
end
|
|
159
169
|
end
|
|
160
170
|
|
|
171
|
+
# Why the service paused this schedule, or null for other schedules.
|
|
172
|
+
module PauseReason
|
|
173
|
+
extend OpenAI::Internal::Type::Enum
|
|
174
|
+
|
|
175
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, OpenAI::Beta::Agents::OneTimeAutomation::PauseReason) }
|
|
176
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
177
|
+
|
|
178
|
+
TARGET_SESSION_FAILED = T.let(
|
|
179
|
+
:target_session_failed,
|
|
180
|
+
OpenAI::Beta::Agents::OneTimeAutomation::PauseReason::TaggedSymbol
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
sig { override.returns(T::Array[OpenAI::Beta::Agents::OneTimeAutomation::PauseReason::TaggedSymbol]) }
|
|
184
|
+
def self.values
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
161
188
|
end
|
|
162
189
|
|
|
163
190
|
end
|
|
@@ -60,6 +60,10 @@ module OpenAI
|
|
|
60
60
|
sig { returns(Symbol) }
|
|
61
61
|
attr_accessor :type
|
|
62
62
|
|
|
63
|
+
# Why the service paused this schedule, or null for other schedules.
|
|
64
|
+
sig { returns(T.nilable(OpenAI::Beta::Agents::PeriodicAutomation::PauseReason::TaggedSymbol)) }
|
|
65
|
+
attr_accessor :pause_reason
|
|
66
|
+
|
|
63
67
|
# Fields shared by periodic and one-time automations.
|
|
64
68
|
sig do
|
|
65
69
|
params(
|
|
@@ -88,6 +92,8 @@ module OpenAI
|
|
|
88
92
|
|
|
89
93
|
timezone: String,
|
|
90
94
|
|
|
95
|
+
pause_reason: T.nilable(OpenAI::Beta::Agents::PeriodicAutomation::PauseReason::OrSymbol),
|
|
96
|
+
|
|
91
97
|
object: Symbol,
|
|
92
98
|
|
|
93
99
|
type: Symbol
|
|
@@ -123,6 +129,9 @@ module OpenAI
|
|
|
123
129
|
# The timezone used to interpret the expression.
|
|
124
130
|
timezone:,
|
|
125
131
|
|
|
132
|
+
# Why the service paused this schedule, or null for other schedules.
|
|
133
|
+
pause_reason: nil,
|
|
134
|
+
|
|
126
135
|
# Always `agent.automation`.
|
|
127
136
|
object: :"agent.automation",
|
|
128
137
|
|
|
@@ -145,7 +154,8 @@ module OpenAI
|
|
|
145
154
|
status: OpenAI::Beta::Agents::PeriodicAutomation::Status::TaggedSymbol,
|
|
146
155
|
target: OpenAI::Beta::Agents::AutomationTarget::Variants,
|
|
147
156
|
timezone: String,
|
|
148
|
-
type: Symbol
|
|
157
|
+
type: Symbol,
|
|
158
|
+
pause_reason: T.nilable(OpenAI::Beta::Agents::PeriodicAutomation::PauseReason::TaggedSymbol)
|
|
149
159
|
}
|
|
150
160
|
)
|
|
151
161
|
end
|
|
@@ -167,6 +177,23 @@ module OpenAI
|
|
|
167
177
|
end
|
|
168
178
|
end
|
|
169
179
|
|
|
180
|
+
# Why the service paused this schedule, or null for other schedules.
|
|
181
|
+
module PauseReason
|
|
182
|
+
extend OpenAI::Internal::Type::Enum
|
|
183
|
+
|
|
184
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, OpenAI::Beta::Agents::PeriodicAutomation::PauseReason) }
|
|
185
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
186
|
+
|
|
187
|
+
TARGET_SESSION_FAILED = T.let(
|
|
188
|
+
:target_session_failed,
|
|
189
|
+
OpenAI::Beta::Agents::PeriodicAutomation::PauseReason::TaggedSymbol
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
sig { override.returns(T::Array[OpenAI::Beta::Agents::PeriodicAutomation::PauseReason::TaggedSymbol]) }
|
|
193
|
+
def self.values
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
170
197
|
end
|
|
171
198
|
|
|
172
199
|
end
|
|
@@ -208,8 +208,7 @@ module OpenAI
|
|
|
208
208
|
end
|
|
209
209
|
|
|
210
210
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
211
|
-
# object replaces the settings; null or an empty object
|
|
212
|
-
# compaction.
|
|
211
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
213
212
|
sig { returns(T.nilable(OpenAI::Beta::Agents::SessionCreateParams::Agent::Compaction)) }
|
|
214
213
|
attr_reader :compaction
|
|
215
214
|
|
|
@@ -326,8 +325,7 @@ module OpenAI
|
|
|
326
325
|
def self.new(
|
|
327
326
|
|
|
328
327
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
329
|
-
# object replaces the settings; null or an empty object
|
|
330
|
-
# compaction.
|
|
328
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
331
329
|
compaction: nil,
|
|
332
330
|
|
|
333
331
|
# Experimental settings to merge by key. Omitted settings keep their current
|
|
@@ -400,15 +398,14 @@ module OpenAI
|
|
|
400
398
|
)
|
|
401
399
|
end
|
|
402
400
|
|
|
403
|
-
# Whether to compact context in the background. Omission or null defaults to
|
|
404
|
-
# Set to
|
|
405
|
-
# token usage.
|
|
401
|
+
# Whether to compact context in the background. Omission or null defaults to
|
|
402
|
+
# false. Set to true to enable background compaction. Background compaction may
|
|
403
|
+
# increase token usage.
|
|
406
404
|
sig { returns(T.nilable(T::Boolean)) }
|
|
407
405
|
attr_accessor :async
|
|
408
406
|
|
|
409
407
|
# Context compaction settings. Omit to keep the current settings. A supplied
|
|
410
|
-
# object replaces the settings; null or an empty object
|
|
411
|
-
# compaction.
|
|
408
|
+
# object replaces the settings; null or an empty object uses blocking compaction.
|
|
412
409
|
sig do
|
|
413
410
|
params(
|
|
414
411
|
|
|
@@ -418,9 +415,9 @@ module OpenAI
|
|
|
418
415
|
end
|
|
419
416
|
def self.new(
|
|
420
417
|
|
|
421
|
-
# Whether to compact context in the background. Omission or null defaults to
|
|
422
|
-
# Set to
|
|
423
|
-
# token usage.
|
|
418
|
+
# Whether to compact context in the background. Omission or null defaults to
|
|
419
|
+
# false. Set to true to enable background compaction. Background compaction may
|
|
420
|
+
# increase token usage.
|
|
424
421
|
|
|
425
422
|
async: nil
|
|
426
423
|
)
|
|
@@ -989,7 +989,9 @@ module OpenAI
|
|
|
989
989
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
990
990
|
|
|
991
991
|
GPT_6_ASTRA = T.let(:"gpt-6-astra", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
992
|
+
GPT_6_2_ASTRA = T.let(:"gpt-6.2-astra", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
992
993
|
GPT_6_1_SOL = T.let(:"gpt-6.1-sol", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
994
|
+
GPT_6_2_SOL = T.let(:"gpt-6.2-sol", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
993
995
|
GPT_6_1_TERRA = T.let(:"gpt-6.1-terra", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
994
996
|
GPT_6_SOL = T.let(:"gpt-6-sol", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
995
997
|
GPT_6_LUNA = T.let(:"gpt-6-luna", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
@@ -1135,6 +1137,7 @@ module OpenAI
|
|
|
1135
1137
|
GPT_5_6_CYBER = T.let(:"gpt-5.6-cyber", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
1136
1138
|
GPT_6_CYBER = T.let(:"gpt-6-cyber", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
1137
1139
|
GPT_ROSALIND_RESEARCH = T.let(:"gpt-rosalind-research", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
1140
|
+
GPT_6_2_ASTRA_LAW = T.let(:"gpt-6.2-astra-law", OpenAI::Beta::BetaResponse::Model::TaggedSymbol)
|
|
1138
1141
|
|
|
1139
1142
|
end
|
|
1140
1143
|
|