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

An application-hosted environment configured inline.

Parameters:

  • workspace_directory (String)

    Absolute project directory inside the self-hosted environment.

  • capability_directories (Array<String>, nil) (defaults to: nil)

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

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

    The type of the object. Always self_hosted.



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

Instance Attribute Details

#capability_directoriesArray<String>?

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

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


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

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

#typeSymbol, :self_hosted

The type of the object. Always self_hosted.

Parameters:

  • value (:self_hosted)

Returns:

  • (Symbol, :self_hosted)


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

required :type, const: :self_hosted

#workspace_directoryString

Absolute project directory inside the self-hosted environment.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :workspace_directory, String

Instance Method Details

#to_hash{

Returns:

  • ({)


172
# File 'sig/openai/models/beta/environment_param.rbs', line 172

def to_hash: -> {