Class: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto
- Defined in:
- lib/openai/models/live/responses_delegation_update_config.rb,
sig/openai/models/live/responses_delegation_update_config.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::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?
The memory limit for the container.
-
#network_policy ⇒ OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::network_policy?
Network access policy for the container.
-
#skills ⇒ ::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::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::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy::Disabled, OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy::Allowlist)
Instance Method Summary collapse
-
#initialize(allowed_domains:, type: :allowlist) ⇒ ContainerAuto
constructor
A new instance of ContainerAuto.
- #to_hash ⇒ { ?type: :container_auto, ?file_ids: ::Array[String]?, ?memory_limit: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?, ?network_policy: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::network_policy?, ?skills: ::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::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(allowed_domains:, type: :allowlist) ⇒ ContainerAuto
Returns a new instance of ContainerAuto.
|
|
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 976
|
Instance Attribute Details
#file_ids ⇒ ::Array[String]?
An optional list of uploaded files to make available to your code.
933 |
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 933 optional :file_ids, OpenAI::Internal::Type::ArrayOf[String], nil?: true |
#memory_limit ⇒ OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?
The memory limit for the container.
939 940 941 942 943 944 945 |
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 939 optional( :memory_limit, enum: -> { OpenAI::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::MemoryLimit }, nil?: true ) |
#network_policy ⇒ OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::network_policy?
Network access policy for the container.
951 952 953 954 955 956 957 |
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 951 optional( :network_policy, union: -> { OpenAI::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy }, nil?: true ) |
#skills ⇒ ::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::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.
966 967 968 969 970 971 972 973 974 |
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 966 optional( :skills, -> { OpenAI::Internal::Type::ArrayOf[ union: OpenAI::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::Skill ] }, nil?: true ) |
#type ⇒ :container_auto
Automatically creates a container for this request
927 |
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 927 required :type, const: :container_auto |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 1006
|
.variants ⇒ Array(OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy::Disabled, OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy::Allowlist)
|
|
# File 'lib/openai/models/live/responses_delegation_update_config.rb', line 1065
|
Instance Method Details
#to_hash ⇒ { ?type: :container_auto, ?file_ids: ::Array[String]?, ?memory_limit: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?, ?network_policy: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::network_policy?, ?skills: ::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::skill]? }
833 834 835 836 837 838 839 |
# File 'sig/openai/models/live/responses_delegation_update_config.rbs', line 833
def to_hash: -> {
?type: :container_auto,
?file_ids: ::Array[String]?,
?memory_limit: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?,
?network_policy: OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::network_policy?,
?skills: ::Array[OpenAI::Models::Live::ResponsesDelegationUpdateConfig::Tool::Shell::Environment::ContainerAuto::skill]?
}
|