class

OpenAI::FileCitationBody

Inherits JSON::Serializable < Reference < Object

A citation to a file.

Constructors

new(type_value : FileCitationBodyType = FileCitationBodyType::FileCitation, file_id : String = "", index : Int64 = 0, filename : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

file_id

The ID of the file.

Source
file_id=(file_id : String)

The ID of the file.

Source
filename

The filename of the file cited.

Source
filename=(filename : String)

The filename of the file cited.

Source
index

The index of the file in the list of files.

Source
index=(index : Int64)

The index of the file in the list of files.

Source
type_value

The type of the file citation. Always file_citation.

Source
type_value=(type_value : FileCitationBodyType)

The type of the file citation. Always file_citation.

Source