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_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

#initializeObject



25
# File 'sig/openai/models/beta/agents/environments/environment_file.rbs', line 25

def initialize: (

Instance Attribute Details

#environment_idString

The ID of the environment containing this file.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :environment_id, String

#objectSymbol, :"agent.environment.file"

The object type. Always agent.environment.file.

Parameters:

  • value (:"agent.environment.file")

Returns:

  • (Symbol, :"agent.environment.file")


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

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

#pathString

The absolute file path inside the environment's workspace.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :path, String

#size_bytesInteger

The file size in bytes.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :size_bytes, Integer

Instance Method Details

#to_hash{

Returns:

  • ({)


32
# File 'sig/openai/models/beta/agents/environments/environment_file.rbs', line 32

def to_hash: -> {