Class: OpenAI::Models::Beta::BetaContainerAuto
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaContainerAuto
- Defined in:
- lib/openai/models/beta/beta_container_auto.rb,
sig/openai/models/beta/beta_container_auto.rbs
Defined Under Namespace
Modules: MemoryLimit, NetworkPolicy, Skill
Instance Attribute Summary collapse
-
#file_ids ⇒ ::Array[String]?
An optional list of uploaded files to make available to your code.
-
#memory_limit ⇒ OpenAI::Models::Beta::BetaContainerAuto::memory_limit?
The memory limit for the container.
-
#network_policy ⇒ OpenAI::Models::Beta::BetaContainerAuto::network_policy?
Network access policy for the container.
-
#skills ⇒ ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]?
An optional list of skills referenced by id or inline data.
-
#type ⇒ :container_auto
Automatically creates a container for this request.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(OpenAI::Models::Beta::BetaContainerNetworkPolicyDisabled, OpenAI::Models::Beta::BetaContainerNetworkPolicyAllowlist)
Instance Method Summary collapse
-
#initialize(file_ids: nil, memory_limit: nil, network_policy: nil, skills: nil, type: :container_auto) ⇒ BetaContainerAuto
constructor
A new instance of BetaContainerAuto.
- #to_hash ⇒ { ?type: :container_auto, ?file_ids: ::Array[String], ?memory_limit: OpenAI::Models::Beta::BetaContainerAuto::memory_limit?, ?network_policy: OpenAI::Models::Beta::BetaContainerAuto::network_policy, ?skills: ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill] }
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(file_ids: nil, memory_limit: nil, network_policy: nil, skills: nil, type: :container_auto) ⇒ BetaContainerAuto
Returns a new instance of BetaContainerAuto.
|
|
# File 'lib/openai/models/beta/beta_container_auto.rb', line 40
|
Instance Attribute Details
#file_ids ⇒ ::Array[String]?
An optional list of uploaded files to make available to your code.
17 |
# File 'lib/openai/models/beta/beta_container_auto.rb', line 17 optional :file_ids, OpenAI::Internal::Type::ArrayOf[String] |
#memory_limit ⇒ OpenAI::Models::Beta::BetaContainerAuto::memory_limit?
The memory limit for the container.
23 |
# File 'lib/openai/models/beta/beta_container_auto.rb', line 23 optional :memory_limit, enum: -> { OpenAI::Beta::BetaContainerAuto::MemoryLimit }, nil?: true |
#network_policy ⇒ OpenAI::Models::Beta::BetaContainerAuto::network_policy?
Network access policy for the container.
29 |
# File 'lib/openai/models/beta/beta_container_auto.rb', line 29 optional :network_policy, union: -> { OpenAI::Beta::BetaContainerAuto::NetworkPolicy } |
#skills ⇒ ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]?
An optional list of skills referenced by id or inline data. Across all inline skills in this list, decoded ZIP data must total at most 50 MiB and Base64 text must total at most 70,254,592 characters, including line breaks. Skill references do not count toward these limits.
38 |
# File 'lib/openai/models/beta/beta_container_auto.rb', line 38 optional :skills, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::BetaContainerAuto::Skill] } |
#type ⇒ :container_auto
Automatically creates a container for this request
11 |
# File 'lib/openai/models/beta/beta_container_auto.rb', line 11 required :type, const: :container_auto |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/beta_container_auto.rb', line 70
|
.variants ⇒ Array(OpenAI::Models::Beta::BetaContainerNetworkPolicyDisabled, OpenAI::Models::Beta::BetaContainerNetworkPolicyAllowlist)
|
|
# File 'lib/openai/models/beta/beta_container_auto.rb', line 86
|
Instance Method Details
#to_hash ⇒ { ?type: :container_auto, ?file_ids: ::Array[String], ?memory_limit: OpenAI::Models::Beta::BetaContainerAuto::memory_limit?, ?network_policy: OpenAI::Models::Beta::BetaContainerAuto::network_policy, ?skills: ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill] }
71 72 73 74 75 76 77 |
# File 'sig/openai/models/beta/beta_container_auto.rbs', line 71
def to_hash: -> {
?type: :container_auto,
?file_ids: ::Array[String],
?memory_limit: OpenAI::Models::Beta::BetaContainerAuto::memory_limit?,
?network_policy: OpenAI::Models::Beta::BetaContainerAuto::network_policy,
?skills: ::Array[OpenAI::Models::Beta::BetaContainerAuto::skill]
}
|