Class: OpenAI::Models::Beta::Environment::SelfHosted

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/environment.rb,
sig/openai/models/beta/environment.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_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(id:, capability_directories:, remote_url:, workspace_directory:, type: :self_hosted) ⇒ SelfHosted

Returns a new instance of SelfHosted.

Parameters:

  • id —

    The public ID of the environment.

  • capability_directories —

    Directories that contain capabilities exposed to the agent.

  • remote_url —

    Pass this URL unchanged to codex exec-server --remote when connecting this environment.

  • workspace_directory —

    The absolute project directory inside the environment. Defaults to /workspace.

  • type (defaults to: :self_hosted) —

    The type of the object. Always self_hosted.

  • id: (String)
  • capability_directories: (::Array[String])
  • remote_url: (String)
  • workspace_directory: (String)
  • type: (:self_hosted) (defaults to: :self_hosted)


# File 'lib/openai/models/beta/environment.rb', line 277

Instance Attribute Details

#capability_directories ⇒ ::Array[String]

Directories that contain capabilities exposed to the agent.

Returns:

  • (::Array[String])


256
# File 'lib/openai/models/beta/environment.rb', line 256

required :capability_directories, OpenAI::Internal::Type::ArrayOf[String]

#id ⇒ String

The public ID of the environment.

Returns:

  • (String)


250
# File 'lib/openai/models/beta/environment.rb', line 250

required :id, String

#remote_url ⇒ String

Pass this URL unchanged to codex exec-server --remote when connecting this environment.

Returns:

  • (String)


263
# File 'lib/openai/models/beta/environment.rb', line 263

required :remote_url, String

#type ⇒ :self_hosted

The type of the object. Always self_hosted.

Returns:

  • (:self_hosted)


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

required :type, const: :self_hosted

#workspace_directory ⇒ String

The absolute project directory inside the environment. Defaults to /workspace.

Returns:

  • (String)


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

required :workspace_directory, String

Instance Method Details

#to_hash ⇒ { id: String, capability_directories: ::Array[String], remote_url: String, ?type: :self_hosted, workspace_directory: String }

Returns:

  • ({ id: String, capability_directories: ::Array[String], remote_url: String, ?type: :self_hosted, workspace_directory: String })


275
276
277
278
279
280
281
# File 'sig/openai/models/beta/environment.rbs', line 275

def to_hash: -> {
  id: String,
  capability_directories: ::Array[String],
  remote_url: String,
  ?type: :self_hosted,
  workspace_directory: String
}