Exception: OpenAI::Helpers::Beta::Agents::FilePreparationError

Inherits:
Errors::Error
  • Object
show all
Defined in:
lib/openai/helpers/beta/agents/files.rb,
sig/openai/helpers/beta/agents/files.rbs

Overview

A preparation failed after uploads may have been created (beta).

Instance Attribute Summary collapse

Attributes inherited from Errors::Error

#cause

Instance Method Summary collapse

Constructor Details

#initialize(prepared:) ⇒ FilePreparationError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of FilePreparationError.

Parameters:



35
36
37
38
# File 'lib/openai/helpers/beta/agents/files.rb', line 35

def initialize(prepared:)
  @prepared = prepared
  super("Agent file preparation failed; prepared contains the uploaded file references")
end

Instance Attribute Details

#prepared ⇒ PreparedFiles (readonly)

Returns the value of attribute prepared.

Returns:



32
33
34
# File 'lib/openai/helpers/beta/agents/files.rb', line 32

def prepared
  @prepared
end