Class: OpenAI::Models::Beta::Environment::OpenAIHosted::Packages
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Environment::OpenAIHosted::Packages
- Defined in:
- lib/openai/models/beta/environment.rb,
sig/openai/models/beta/environment.rbs
Overview
Instance Attribute Summary collapse
-
#npm ⇒ ::Array[String]
npm packages installed globally in the environment.
-
#python ⇒ ::Array[String]
Python packages installed in the environment.
-
#system_ ⇒ ::Array[String]
System packages installed in the environment.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ Packages
constructor
A new instance of Packages.
- #to_hash ⇒ { npm: ::Array[String], python: ::Array[String], system_: ::Array[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 ⇒ Packages
Returns a new instance of Packages.
191 192 193 194 195 |
# File 'sig/openai/models/beta/environment.rbs', line 191
def initialize: (
npm: ::Array[String],
python: ::Array[String],
system_: ::Array[String]
) -> void
|
Instance Attribute Details
#npm ⇒ ::Array[String]
npm packages installed globally in the environment.
187 |
# File 'lib/openai/models/beta/environment.rb', line 187 required :npm, OpenAI::Internal::Type::ArrayOf[String] |
#python ⇒ ::Array[String]
Python packages installed in the environment.
193 |
# File 'lib/openai/models/beta/environment.rb', line 193 required :python, OpenAI::Internal::Type::ArrayOf[String] |
#system_ ⇒ ::Array[String]
System packages installed in the environment.
199 |
# File 'lib/openai/models/beta/environment.rb', line 199 required :system_, OpenAI::Internal::Type::ArrayOf[String], api_name: :system |
Instance Method Details
#to_hash ⇒ { npm: ::Array[String], python: ::Array[String], system_: ::Array[String] }
197 198 199 200 201 |
# File 'sig/openai/models/beta/environment.rbs', line 197
def to_hash: -> {
npm: ::Array[String],
python: ::Array[String],
system_: ::Array[String]
}
|