Class: OpenAI::Models::Beta::Environment::OpenAIHosted::Packages

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/environment.rb,
sig/openai/models/beta/environment.rbs

Overview

See Also:

  • OpenAI::Models::Beta::Environment::OpenAIHosted#packages

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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.

Parameters:

  • npm —

    npm packages installed globally in the environment.

  • python —

    Python packages installed in the environment.

  • system_ —

    System packages installed in the environment.

  • npm: (::Array[String])
  • python: (::Array[String])
  • system_: (::Array[String])


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.

Returns:

  • (::Array[String])


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.

Returns:

  • (::Array[String])


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.

Returns:

  • (::Array[String])


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] }

Returns:

  • ({ 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]
}