Class: OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions
- Defined in:
- lib/openai/models/responses/response_create_params.rb,
sig/openai/models/responses/response_create_params.rbs
Defined Under Namespace
Modules: CompletionWindow
Instance Attribute Summary collapse
-
#completion_window ⇒ OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window?
The completion window for background execution.
-
#continuation_id ⇒ String?
A customer-provided opaque identifier used to prioritize related background requests.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(completion_window: nil, continuation_id: nil) ⇒ BackgroundOptions
constructor
A new instance of BackgroundOptions.
- #to_hash ⇒ { ?completion_window: OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window, ?continuation_id: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(completion_window: nil, continuation_id: nil) ⇒ BackgroundOptions
Returns a new instance of BackgroundOptions.
|
|
# File 'lib/openai/models/responses/response_create_params.rb', line 733
|
Instance Attribute Details
#completion_window ⇒ OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window?
The completion window for background execution. Defaults to soonest; 2h and
8h select discounted background execution.
721 722 723 724 |
# File 'lib/openai/models/responses/response_create_params.rb', line 721 optional( :completion_window, enum: -> { OpenAI::Responses::ResponseCreateParams::BackgroundOptions::CompletionWindow } ) |
#continuation_id ⇒ String?
A customer-provided opaque identifier used to prioritize related background requests. It does not add prior history to the input.
731 |
# File 'lib/openai/models/responses/response_create_params.rb', line 731 optional :continuation_id, String |
Instance Method Details
#to_hash ⇒ { ?completion_window: OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window, ?continuation_id: String }
803 804 805 806 |
# File 'sig/openai/models/responses/response_create_params.rbs', line 803
def to_hash: -> {
?completion_window: OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window,
?continuation_id: String
}
|