Class: OpenAI::Models::Beta::Agents::Environments::TemplateUpdateParams::Packages

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

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

#initialize(npm: nil, python: nil, system_: nil) ⇒ Object

Packages to install in an OpenAI-hosted environment.

Parameters:

  • npm (Array<String>, nil) (defaults to: nil)

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

  • python (Array<String>, nil) (defaults to: nil)

    Python packages to install. Defaults to an empty list.

  • system_ (Array<String>, nil) (defaults to: nil)

    System packages to install. Defaults to an empty list.



# File 'lib/openai/models/beta/agents/environments/template_update_params.rb', line 195

Instance Attribute Details

#npmArray<String>?

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

Parameters:

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

Returns:

  • (Array<String>, nil)


181
# File 'lib/openai/models/beta/agents/environments/template_update_params.rb', line 181

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)


187
# File 'lib/openai/models/beta/agents/environments/template_update_params.rb', line 187

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)


193
# File 'lib/openai/models/beta/agents/environments/template_update_params.rb', line 193

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

Instance Method Details

#to_hash{

Returns:

  • ({)


132
# File 'sig/openai/models/beta/agents/environments/template_update_params.rbs', line 132

def to_hash: -> {