Class: LLM::Response::DownloadFile

Inherits:
LLM::Response show all
Defined in:
lib/llm/response/download_file.rb

Overview

The LLM::Response::DownloadFile class represents the contents of a file that has been returned by a provider. It wraps an IO object that can be used to read the file contents.

Instance Attribute Summary collapse

Method Summary

Methods inherited from LLM::Response

#body, #initialize

Constructor Details

This class inherits a constructor from LLM::Response

Instance Attribute Details

#fileStringIO

Returns a StringIO object

Returns:

  • (StringIO)


13
14
15
# File 'lib/llm/response/download_file.rb', line 13

def file
  @file
end