Class: OpenAI::Models::Beta::EnvironmentParam::OpenAIHosted
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::EnvironmentParam::OpenAIHosted
- Defined in:
- lib/openai/models/beta/environment_param.rb,
sig/openai/models/beta/environment_param.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#capability_directories ⇒ ::Array[String]?
Directories that contain capabilities exposed to the agent.
-
#env ⇒ ::Hash[Symbol, String]?
Environment variables made available to the agent.
-
#environment_template_id ⇒ String?
A reusable hosted template applied before inline session configuration.
-
#files ⇒ ::Array[OpenAI::Models::Beta::hosted_environment_file_param]?
Files available before the agent starts.
-
#network ⇒ OpenAI::Beta::EnvironmentParam::OpenAIHosted::Network?
Network access policy for the environment.
-
#packages ⇒ OpenAI::Beta::EnvironmentParam::OpenAIHosted::Packages?
Packages to install in the environment.
-
#plugins ⇒ ::Array[OpenAI::Beta::HostedPluginParam]?
Plugins provided as inline ZIP archives.
-
#setup_commands ⇒ ::Array[OpenAI::Beta::SetupCommandParam]?
Ordered, confidential setup commands.
-
#skills ⇒ ::Array[OpenAI::Models::Beta::hosted_skill_param]?
Skills referenced by ID or provided as inline ZIP archives.
-
#type ⇒ :openai_hosted
The type of the object.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(capability_directories: nil, env: nil, environment_template_id: nil, files: nil, network: nil, packages: nil, plugins: nil, setup_commands: nil, skills: nil, type: :openai_hosted) ⇒ Object constructor
- #to_hash ⇒ {
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(capability_directories: nil, env: nil, environment_template_id: nil, files: nil, network: nil, packages: nil, plugins: nil, setup_commands: nil, skills: nil, type: :openai_hosted) ⇒ Object
|
|
# File 'lib/openai/models/beta/environment_param.rb', line 118
|
Instance Attribute Details
#capability_directories ⇒ ::Array[String]?
Directories that contain capabilities exposed to the agent. Defaults to an empty list.
47 |
# File 'lib/openai/models/beta/environment_param.rb', line 47 optional :capability_directories, OpenAI::Internal::Type::ArrayOf[String], nil?: true |
#env ⇒ ::Hash[Symbol, String]?
Environment variables made available to the agent.
53 |
# File 'lib/openai/models/beta/environment_param.rb', line 53 optional :env, OpenAI::Internal::Type::HashOf[String], nil?: true |
#environment_template_id ⇒ String?
A reusable hosted template applied before inline session configuration. Omitted fields inherit the template; network overrides cannot broaden its policy.
60 |
# File 'lib/openai/models/beta/environment_param.rb', line 60 optional :environment_template_id, String |
#files ⇒ ::Array[OpenAI::Models::Beta::hosted_environment_file_param]?
Files available before the agent starts. Defaults to an empty list.
66 67 68 69 70 |
# File 'lib/openai/models/beta/environment_param.rb', line 66 optional( :files, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::HostedEnvironmentFileParam] }, nil?: true ) |
#network ⇒ OpenAI::Beta::EnvironmentParam::OpenAIHosted::Network?
Network access policy for the environment. Defaults to disabled for GA requests and enabled for alpha/beta requests.
77 |
# File 'lib/openai/models/beta/environment_param.rb', line 77 optional :network, -> { OpenAI::Beta::EnvironmentParam::OpenAIHosted::Network }, nil?: true |
#packages ⇒ OpenAI::Beta::EnvironmentParam::OpenAIHosted::Packages?
Packages to install in the environment. Defaults to empty package lists.
83 |
# File 'lib/openai/models/beta/environment_param.rb', line 83 optional :packages, -> { OpenAI::Beta::EnvironmentParam::OpenAIHosted::Packages }, nil?: true |
#plugins ⇒ ::Array[OpenAI::Beta::HostedPluginParam]?
Plugins provided as inline ZIP archives. Defaults to an empty list.
89 90 91 92 93 94 95 |
# File 'lib/openai/models/beta/environment_param.rb', line 89 optional( :plugins, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::HostedPluginParam] }, nil?: true ) |
#setup_commands ⇒ ::Array[OpenAI::Beta::SetupCommandParam]?
Ordered, confidential setup commands. Command bodies are never returned.
101 102 103 104 105 |
# File 'lib/openai/models/beta/environment_param.rb', line 101 optional( :setup_commands, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::SetupCommandParam] }, nil?: true ) |
#skills ⇒ ::Array[OpenAI::Models::Beta::hosted_skill_param]?
Skills referenced by ID or provided as inline ZIP archives. Defaults to an empty list.
112 113 114 115 116 |
# File 'lib/openai/models/beta/environment_param.rb', line 112 optional( :skills, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::HostedSkillParam] }, nil?: true ) |
#type ⇒ :openai_hosted
The type of the object. Always openai_hosted.
40 |
# File 'lib/openai/models/beta/environment_param.rb', line 40 required :type, const: :openai_hosted |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/openai/models/beta/environment_param.rb', line 194
|
Instance Method Details
#to_hash ⇒ {
115 |
# File 'sig/openai/models/beta/environment_param.rbs', line 115
def to_hash: -> {
|