Class: OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment::Packages

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

Overview

See Also:

  • OpenAI::Models::Beta::Agents::EnvironmentCreateParams::Environment#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(npm: nil, python: nil, system_: nil) ⇒ Packages

Returns a new instance of Packages.

Parameters:

  • npm (defaults to: nil) —

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

  • python (defaults to: nil) —

    Python packages to install. Defaults to an empty list.

  • system_ (defaults to: nil) —

    System packages to install. Defaults to an empty list.

  • npm: (::Array[String], nil) (defaults to: nil)
  • python: (::Array[String], nil) (defaults to: nil)
  • system_: (::Array[String], nil) (defaults to: nil)


# File 'lib/openai/models/beta/agents/environment_create_params.rb', line 283


Instance Attribute Details

#npm ⇒ ::Array[String]?

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

Returns:

  • (::Array[String], nil)


269
# File 'lib/openai/models/beta/agents/environment_create_params.rb', line 269

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

#python ⇒ ::Array[String]?

Python packages to install. Defaults to an empty list.

Returns:

  • (::Array[String], nil)


275
# File 'lib/openai/models/beta/agents/environment_create_params.rb', line 275

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

#system_ ⇒ ::Array[String]?

System packages to install. Defaults to an empty list.

Returns:

  • (::Array[String], nil)


281
# File 'lib/openai/models/beta/agents/environment_create_params.rb', line 281

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

Instance Method Details

#to_hash ⇒ { ?npm: ::Array[String]?, ?python: ::Array[String]?, ?system_: ::Array[String]? }

Returns:

  • ({ ?npm: ::Array[String]?, ?python: ::Array[String]?, ?system_: ::Array[String]? })


257
258
259
260
261
# File 'sig/openai/models/beta/agents/environment_create_params.rbs', line 257

def to_hash: -> {
  ?npm: ::Array[String]?,
  ?python: ::Array[String]?,
  ?system_: ::Array[String]?
}