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_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(id:, capability_directories:, remote_url:, workspace_directory:, type: :self_hosted) ⇒ Object

An environment hosted by the application.

Parameters:

  • id (String)

    The public ID of the environment.

  • capability_directories (Array<String>)

    Directories that contain capabilities exposed to the agent.

  • remote_url (String)

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

  • workspace_directory (String)

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

  • type (Symbol, :self_hosted) (defaults to: :self_hosted)

    The type of the object. Always self_hosted.



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

Instance Attribute Details

#capability_directoriesArray<String>

Directories that contain capabilities exposed to the agent.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


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

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

#idString

The public ID of the environment.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#remote_urlString

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

Parameters:

  • value (String)

Returns:

  • (String)


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

required :remote_url, String

#typeSymbol, :self_hosted

The type of the object. Always self_hosted.

Parameters:

  • value (:self_hosted)

Returns:

  • (Symbol, :self_hosted)


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

required :type, const: :self_hosted

#workspace_directoryString

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

Parameters:

  • value (String)

Returns:

  • (String)


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

required :workspace_directory, String

Instance Method Details

#to_hash{

Returns:

  • ({)


168
# File 'sig/openai/models/beta/environment.rbs', line 168

def to_hash: -> {