class

OpenAI::UrlCitationBody

Inherits JSON::Serializable < Reference < Object

A citation for a web resource used to generate a model response.

Constructors

new(type_value : UrlCitationBodyType = UrlCitationBodyType::UrlCitation, url : String = "", start_index : Int64 = 0, end_index : Int64 = 0, title : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

end_index

The index of the last character of the URL citation in the message.

Source
end_index=(end_index : Int64)

The index of the last character of the URL citation in the message.

Source
start_index

The index of the first character of the URL citation in the message.

Source
start_index=(start_index : Int64)

The index of the first character of the URL citation in the message.

Source
title

The title of the web resource.

Source
title=(title : String)

The title of the web resource.

Source
type_value

The type of the URL citation. Always url_citation.

Source
type_value=(type_value : UrlCitationBodyType)

The type of the URL citation. Always url_citation.

Source
url

The URL of the web resource.

Source
url=(url : String)

The URL of the web resource.

Source