Class: LLM::Response::FileList

Inherits:
LLM::Response show all
Includes:
Enumerable
Defined in:
lib/llm/response/filelist.rb

Overview

The LLM::Response::FileList class represents a list of file objects that are returned by a provider. It is an Enumerable object, and can be used to iterate over the file objects in a way that is similar to an array. Each element is an instance of OpenStruct.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LLM::Response

#body, #initialize

Constructor Details

This class inherits a constructor from LLM::Response

Instance Attribute Details

#filesObject

Returns the value of attribute files.



12
13
14
# File 'lib/llm/response/filelist.rb', line 12

def files
  @files
end

Instance Method Details

#eachObject



14
15
16
# File 'lib/llm/response/filelist.rb', line 14

def each(&)
  @files.each(&)
end