Class: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted

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

Defined Under Namespace

Modules: ContainerSize, File, Skill Classes: Desktop, Network, Packages

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Class Method Summary collapse

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:, python:, system_:) ⇒ OpenAIHosted

Returns a new instance of OpenAIHosted.

Parameters:

  • capability_directories —

    Directory overrides, or null to inherit the template or creation default.

  • container_size —

    The configured container size, or null to use the creation default.

  • desktop —

    Desktop overrides, or null to inherit the template or creation default.

  • environment_id —

    An existing environment reference, or null when provisioning a new environment.

  • environment_template_id —

    A template reference, or null when no template is selected.

  • files —

    File overrides, excluding contents, or null to inherit.

  • network —

    Network overrides, or null to inherit the template or creation default.

  • packages —

    Package overrides, or null to inherit the template or creation default.

  • plugins —

    Plugin overrides, excluding archive contents, or null to inherit.

  • skills —

    Skill overrides, excluding archive contents, or null to inherit.

  • type —

    The type of the object. Always openai_hosted.

  • capability_directories: (::Array[String], nil)
  • container_size: (OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size, nil)
  • desktop: (OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop, nil)
  • environment_id: (String, nil)
  • environment_template_id: (String, nil)
  • files: (::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file], nil)
  • network: (OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network, nil)
  • packages: (OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages, nil)
  • plugins: (::Array[OpenAI::Beta::HostedPlugin], nil)
  • skills: (::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill], nil)
  • type: (:openai_hosted)


# File 'lib/openai/models/beta/agents/automation_environment.rb', line 133

Instance Attribute Details

#capability_directories ⇒ ::Array[String]?

Directory overrides, or null to inherit the template or creation default.

Returns:

  • (::Array[String], nil)


37
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 37

required :capability_directories, OpenAI::Internal::Type::ArrayOf[String], nil?: true

#container_size ⇒ OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?

The configured container size, or null to use the creation default.

Returns:

  • (OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size, nil)


43
44
45
46
47
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 43

required(
  :container_size,
  enum: -> { OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::ContainerSize },
  nil?: true
)

#desktop ⇒ OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?

Desktop overrides, or null to inherit the template or creation default.

Returns:

  • (OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop, nil)


53
54
55
56
57
58
59
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 53

required(
  :desktop,
  -> {
    OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop
  },
  nil?: true
)

#environment_id ⇒ String?

An existing environment reference, or null when provisioning a new environment.

Returns:

  • (String, nil)


65
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 65

required :environment_id, String, nil?: true

#environment_template_id ⇒ String?

A template reference, or null when no template is selected.

Returns:

  • (String, nil)


71
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 71

required :environment_template_id, String, nil?: true

#files ⇒ ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?

File overrides, excluding contents, or null to inherit.

Returns:

  • (::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file], nil)


77
78
79
80
81
82
83
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 77

required(
  :files,
  -> {
    OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::File]
  },
  nil?: true
)

#network ⇒ OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?

Network overrides, or null to inherit the template or creation default.

Returns:

  • (OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network, nil)


89
90
91
92
93
94
95
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 89

required(
  :network,
  -> {
    OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network
  },
  nil?: true
)

#packages ⇒ OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?

Package overrides, or null to inherit the template or creation default.

Returns:

  • (OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages, nil)


101
102
103
104
105
106
107
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 101

required(
  :packages,
  -> {
    OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages
  },
  nil?: true
)

#plugins ⇒ ::Array[OpenAI::Beta::HostedPlugin]?

Plugin overrides, excluding archive contents, or null to inherit.

Returns:

  • (::Array[OpenAI::Beta::HostedPlugin], nil)


113
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 113

required :plugins, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::HostedPlugin] }, nil?: true

#skills ⇒ ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?

Skill overrides, excluding archive contents, or null to inherit.

Returns:

  • (::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill], nil)


119
120
121
122
123
124
125
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 119

required(
  :skills,
  -> {
    OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Skill]
  },
  nil?: true
)

#type ⇒ :openai_hosted

The type of the object. Always openai_hosted.

Returns:

  • (:openai_hosted)


131
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 131

required :type, const: :openai_hosted

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/beta/agents/automation_environment.rb', line 180

.variants ⇒ Array(OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::File::FileID, OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::File::Inline)



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

Instance Method Details

#to_hash ⇒ { capability_directories: ::Array[String]?, container_size: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?, desktop: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?, environment_id: String?, environment_template_id: String?, files: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?, network: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?, packages: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?, plugins: ::Array[OpenAI::Beta::HostedPlugin]?, skills: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?, ?type: :openai_hosted }

Returns:

  • ({ capability_directories: ::Array[String]?, container_size: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?, desktop: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?, environment_id: String?, environment_template_id: String?, files: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?, network: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?, packages: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?, plugins: ::Array[OpenAI::Beta::HostedPlugin]?, skills: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?, ?type: :openai_hosted })


111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'sig/openai/models/beta/agents/automation_environment.rbs', line 111

def to_hash: -> {
  capability_directories: ::Array[String]?,
  container_size: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?,
  desktop: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?,
  environment_id: String?,
  environment_template_id: String?,
  files: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?,
  network: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?,
  packages: OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?,
  plugins: ::Array[OpenAI::Beta::HostedPlugin]?,
  skills: ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?,
  ?type: :openai_hosted
}