UrlCitation

data class UrlCitation(val url: String, val title: String, val type: UrlCitation.Type, val startIndex: Int, val endIndex: Int)(source)

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

Parameters

url

The URL of the web resource.

title

The title of the web resource.

type

The type of the URL citation. Always url_citation.

startIndex

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

endIndex

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

Constructors

Link copied to clipboard
constructor(url: String, title: String, type: UrlCitation.Type, startIndex: Int, endIndex: Int)

Types

Link copied to clipboard

The type of the URL citation. Always url_citation.

Properties

Link copied to clipboard
@SerialName(value = "end_index")
val endIndex: Int
Link copied to clipboard
@SerialName(value = "start_index")
val startIndex: Int
Link copied to clipboard
@SerialName(value = "title")
val title: String
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "url")
val url: String