Class: OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto
- Defined in:
- lib/openai/models/live/responses_delegation_config.rb,
sig/openai/models/live/responses_delegation_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::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?
The memory limit for the container.
-
#network_policy ⇒ OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::network_policy?
Network access policy for the container.
-
#skills ⇒ ::Array[OpenAI::Models::Live::ResponsesDelegationConfig::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::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy::Disabled, OpenAI::Models::Live::ResponsesDelegationConfig::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::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?, ?network_policy: OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::network_policy?, ?skills: ::Array[OpenAI::Models::Live::ResponsesDelegationConfig::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_config.rb', line 966
|
Instance Attribute Details
#file_ids ⇒ ::Array[String]?
An optional list of uploaded files to make available to your code.
923 |
# File 'lib/openai/models/live/responses_delegation_config.rb', line 923 optional :file_ids, OpenAI::Internal::Type::ArrayOf[String], nil?: true |
#memory_limit ⇒ OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?
The memory limit for the container.
929 930 931 932 933 934 935 |
# File 'lib/openai/models/live/responses_delegation_config.rb', line 929 optional( :memory_limit, enum: -> { OpenAI::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::MemoryLimit }, nil?: true ) |
#network_policy ⇒ OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::network_policy?
Network access policy for the container.
941 942 943 944 945 946 947 |
# File 'lib/openai/models/live/responses_delegation_config.rb', line 941 optional( :network_policy, union: -> { OpenAI::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy }, nil?: true ) |
#skills ⇒ ::Array[OpenAI::Models::Live::ResponsesDelegationConfig::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.
956 957 958 959 960 961 962 963 964 |
# File 'lib/openai/models/live/responses_delegation_config.rb', line 956 optional( :skills, -> { OpenAI::Internal::Type::ArrayOf[ union: OpenAI::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::Skill ] }, nil?: true ) |
#type ⇒ :container_auto
Automatically creates a container for this request
917 |
# File 'lib/openai/models/live/responses_delegation_config.rb', line 917 required :type, const: :container_auto |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/live/responses_delegation_config.rb', line 996
|
.variants ⇒ Array(OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy::Disabled, OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::NetworkPolicy::Allowlist)
|
|
# File 'lib/openai/models/live/responses_delegation_config.rb', line 1055
|
Instance Method Details
#to_hash ⇒ { ?type: :container_auto, ?file_ids: ::Array[String]?, ?memory_limit: OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?, ?network_policy: OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::network_policy?, ?skills: ::Array[OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::skill]? }
827 828 829 830 831 832 833 |
# File 'sig/openai/models/live/responses_delegation_config.rbs', line 827
def to_hash: -> {
?type: :container_auto,
?file_ids: ::Array[String]?,
?memory_limit: OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::memory_limit?,
?network_policy: OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::network_policy?,
?skills: ::Array[OpenAI::Models::Live::ResponsesDelegationConfig::Tool::Shell::Environment::ContainerAuto::skill]?
}
|