Class: LLM::Response::FileList
- Inherits:
-
LLM::Response
- Object
- LLM::Response
- LLM::Response::FileList
- 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
-
#files ⇒ Object
Returns the value of attribute files.
Instance Method Summary collapse
Methods inherited from LLM::Response
Constructor Details
This class inherits a constructor from LLM::Response
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files.
12 13 14 |
# File 'lib/llm/response/filelist.rb', line 12 def files @files end |
Instance Method Details
#each ⇒ Object
14 15 16 |
# File 'lib/llm/response/filelist.rb', line 14 def each(&) @files.each(&) end |