Class: OpenAI::Models::Beta::Agents::AutomationEnvironment::OpenAIHosted::File::FileID

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agents/automation_environment.rb,
sig/openai/models/beta/agents/automation_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 ⇒ FileID

Returns a new instance of FileID.

Parameters:

  • file_id —

    The ID of the uploaded file.

  • path —

    The file's absolute path inside the environment.

  • type —

    The type of the object. Always file_id.

  • file_id: (String)
  • path: (String)
  • type: (:file_id)


175
176
177
178
179
# File 'sig/openai/models/beta/agents/automation_environment.rbs', line 175

def initialize: (
  file_id: String,
  path: String,
  ?type: :file_id
) -> void

Instance Attribute Details

#file_id ⇒ String

The ID of the uploaded file.

Returns:

  • (String)


216
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 216

required :file_id, String

#path ⇒ String

The file's absolute path inside the environment.

Returns:

  • (String)


222
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 222

required :path, String

#type ⇒ :file_id

The type of the object. Always file_id.

Returns:

  • (:file_id)


228
# File 'lib/openai/models/beta/agents/automation_environment.rb', line 228

required :type, const: :file_id

Instance Method Details

#to_hash ⇒ { file_id: String, path: String, ?type: :file_id }

Returns:

  • ({ file_id: String, path: String, ?type: :file_id })


181
182
183
184
185
# File 'sig/openai/models/beta/agents/automation_environment.rbs', line 181

def to_hash: -> {
  file_id: String,
  path: String,
  ?type: :file_id
}