Class: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted
- 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
-
#capability_directories ⇒ ::Array[String]?
Directory overrides, or null to inherit the template or creation default.
-
#container_size ⇒ OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::container_size?
The configured container size, or null to use the creation default.
-
#desktop ⇒ OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Desktop?
Desktop overrides, or null to inherit the template or creation default.
-
#environment_id ⇒ String?
An existing environment reference, or null when provisioning a new environment.
-
#environment_template_id ⇒ String?
A template reference, or null when no template is selected.
-
#files ⇒ ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::file]?
File overrides, excluding contents, or null to inherit.
-
#network ⇒ OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Network?
Network overrides, or null to inherit the template or creation default.
-
#packages ⇒ OpenAI::Beta::Agents::AutomationEnvironment::OpenAIHosted::Packages?
Package overrides, or null to inherit the template or creation default.
-
#plugins ⇒ ::Array[OpenAI::Beta::HostedPlugin]?
Plugin overrides, excluding archive contents, or null to inherit.
-
#skills ⇒ ::Array[OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::skill]?
Skill overrides, excluding archive contents, or null to inherit.
-
#type ⇒ :openai_hosted
The type of the object.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
- .values ⇒ Array<Symbol>
- .variants ⇒ Array(OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::File::FileID, OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::File::Inline)
Instance Method Summary collapse
-
#initialize(npm:, python:, system_:) ⇒ OpenAIHosted
constructor
A new instance of OpenAIHosted.
- #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 }
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.
|
|
# 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
131 |
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 131 required :type, const: :openai_hosted |
Class Method Details
.values ⇒ 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 }
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
}
|