Class: OpenAI::Models::Beta::EnvironmentParam::SelfHosted

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

Returns a new instance of SelfHosted.

Parameters:

  • workspace_directory —

    Absolute project directory inside the self-hosted environment.

  • capability_directories (defaults to: nil) —

    Directories that contain capabilities exposed to the agent. Defaults to an empty list.

  • type (defaults to: :self_hosted) —

    The type of the object. Always self_hosted.

  • workspace_directory: (String)
  • capability_directories: (::Array[String], nil) (defaults to: nil)
  • type: (:self_hosted) (defaults to: :self_hosted)


# File 'lib/openai/models/beta/environment_param.rb', line 328

Instance Attribute Details

#capability_directories ⇒ ::Array[String]?

Directories that contain capabilities exposed to the agent. Defaults to an empty list.

Returns:

  • (::Array[String], nil)


326
# File 'lib/openai/models/beta/environment_param.rb', line 326

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

#type ⇒ :self_hosted

The type of the object. Always self_hosted.

Returns:

  • (:self_hosted)


313
# File 'lib/openai/models/beta/environment_param.rb', line 313

required :type, const: :self_hosted

#workspace_directory ⇒ String

Absolute project directory inside the self-hosted environment.

Returns:

  • (String)


319
# File 'lib/openai/models/beta/environment_param.rb', line 319

required :workspace_directory, String

Instance Method Details

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

Returns:

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


315
316
317
318
319
# File 'sig/openai/models/beta/environment_param.rbs', line 315

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