Class: OpenAI::Models::Beta::EnvironmentParam::OpenAIHosted::Packages

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

Overview

See Also:

  • OpenAI::Models::Beta::EnvironmentParam::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_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



138
# File 'sig/openai/models/beta/environment_param.rbs', line 138

def initialize: (

Instance Attribute Details

#npmArray<String>?

npm packages to install globally. Defaults to an empty list.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


202
# File 'lib/openai/models/beta/environment_param.rb', line 202

optional :npm, OpenAI::Internal::Type::ArrayOf[String], nil?: true

#pythonArray<String>?

Python packages to install. Defaults to an empty list.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


208
# File 'lib/openai/models/beta/environment_param.rb', line 208

optional :python, OpenAI::Internal::Type::ArrayOf[String], nil?: true

#system_Array<String>?

System packages to install. Defaults to an empty list.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


214
# File 'lib/openai/models/beta/environment_param.rb', line 214

optional :system_, OpenAI::Internal::Type::ArrayOf[String], api_name: :system, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


144
# File 'sig/openai/models/beta/environment_param.rbs', line 144

def to_hash: -> {