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(pull : JSON::PullParser)
Sourcenew(type_value : MessageContentTextAnnotationsFileCitationObjectType = MessageContentTextAnnotationsFileCitationObjectType::FileCitation, text : String = "", file_citation : MessageContentTextAnnotationsFileCitationObjectFileCitation = MessageContentTextAnnotationsFileCitationObjectFileCitation.new, start_index : Int64 = 0, end_index : Int64 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
end_index
Sourcefile_citation
Sourcefile_citation=(file_citation : MessageContentTextAnnotationsFileCitationObjectFileCitation)
Sourcestart_index
Sourcetype_value=(type_value : MessageContentTextAnnotationsFileCitationObjectType)
Always file_citation.
validate!
Source