Class: OpenAI::Models::Beta::Agents::Environments::EnvironmentFile

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agents/environments/environment_file.rb,
sig/openai/models/beta/agents/environments/environment_file.rbs

Overview

See Also:

  • OpenAI::Resources::Beta::Agents::Environments::Files#create

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 ⇒ EnvironmentFile

Returns a new instance of EnvironmentFile.

Parameters:

  • environment_id —

    The ID of the environment containing this file.

  • path —

    The absolute file path inside the environment's workspace.

  • size_bytes —

    The file size in bytes.

  • object —

    The object type. Always agent.environment.file.

  • environment_id: (String)
  • path: (String)
  • size_bytes: (Integer)
  • object: (:"agent.environment.file")


37
38
39
40
41
42
# File 'sig/openai/models/beta/agents/environments/environment_file.rbs', line 37

def initialize: (
  environment_id: String,
  path: String,
  size_bytes: Integer,
  ?object: :"agent.environment.file"
) -> void

Instance Attribute Details

#environment_id ⇒ String

The ID of the environment containing this file.

Returns:

  • (String)


14
# File 'lib/openai/models/beta/agents/environments/environment_file.rb', line 14

required :environment_id, String

#object ⇒ :"agent.environment.file"

The object type. Always agent.environment.file.

Returns:

  • (:"agent.environment.file")


20
# File 'lib/openai/models/beta/agents/environments/environment_file.rb', line 20

required :object, const: :"agent.environment.file"

#path ⇒ String

The absolute file path inside the environment's workspace.

Returns:

  • (String)


26
# File 'lib/openai/models/beta/agents/environments/environment_file.rb', line 26

required :path, String

#size_bytes ⇒ Integer

The file size in bytes.

Returns:

  • (Integer)


32
# File 'lib/openai/models/beta/agents/environments/environment_file.rb', line 32

required :size_bytes, Integer

Instance Method Details

#to_hash ⇒ { environment_id: String, ?object: :"agent.environment.file", path: String, size_bytes: Integer }

Returns:

  • ({ environment_id: String, ?object: :"agent.environment.file", path: String, size_bytes: Integer })


44
45
46
47
48
49
# File 'sig/openai/models/beta/agents/environments/environment_file.rbs', line 44

def to_hash: -> {
  environment_id: String,
  ?object: :"agent.environment.file",
  path: String,
  size_bytes: Integer
}