class

OpenAI::MessageContentTextAnnotationsFileCitationObject

Inherits JSON::Serializable < Reference < Object

A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.

Constructors

new(type_value : MessageContentTextAnnotationsFileCitationObjectType = MessageContentTextAnnotationsFileCitationObjectType::FileCitation, text : String = "", file_citation : MessageContentTextAnnotationsFileCitationObjectFileCitation = MessageContentTextAnnotationsFileCitationObjectFileCitation.new, start_index : Int64 = 0, end_index : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

end_index
Source
end_index=(end_index : Int64)
Source
file_citation
Source
file_citation=(file_citation : MessageContentTextAnnotationsFileCitationObjectFileCitation)
Source
start_index
Source
start_index=(start_index : Int64)
Source
text

The text in the message content that needs to be replaced.

Source
text=(text : String)

The text in the message content that needs to be replaced.

Source
type_value

Always file_citation.

Source
type_value=(type_value : MessageContentTextAnnotationsFileCitationObjectType)

Always file_citation.

Source
validate!
Source