Table of Contents

Class CitationSource

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A citation to a source for a portion of a specific response.

public class CitationSource
Inheritance
CitationSource
Inherited Members
Extension Methods

Properties

EndIndex

Optional. End of the attributed segment, exclusive.

[JsonPropertyName("endIndex")]
public int? EndIndex { get; set; }

Property Value

int?

License

Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.

[JsonPropertyName("license")]
public string? License { get; set; }

Property Value

string

PublicationDate

Optional. Publication date of the attribution.

[JsonPropertyName("publicationDate")]
public GoogleTypeDate? PublicationDate { get; set; }

Property Value

GoogleTypeDate

StartIndex

Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.

[JsonPropertyName("startIndex")]
public int? StartIndex { get; set; }

Property Value

int?

Title

Optional. Title of the attribution.

[JsonPropertyName("title")]
public string? Title { get; set; }

Property Value

string

Uri

Optional. URI that is attributed as a source for a portion of the text.

[JsonPropertyName("uri")]
public string? Uri { get; set; }

Property Value

string

See Also