OpenAI::UrlCitationBody
Inherits JSON::Serializable < Reference < Object
A citation for a web resource used to generate a model response.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : UrlCitationBodyType = UrlCitationBodyType::UrlCitation, url : String = "", start_index : Int64 = 0, end_index : Int64 = 0, title : String = "")
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
end_index=(end_index : Int64)
The index of the last character of the URL citation in the message.
start_index=(start_index : Int64)
The index of the first character of the URL citation in the message.
type_value=(type_value : UrlCitationBodyType)
The type of the URL citation. Always url_citation.