Citation interface
Stay organized with collections
Save and categorize content based on your preferences.
A single citation.
Signature:
export interface Citation
Properties
Citation.endIndex
Signature:
endIndex?: number;
Citation.license
Signature:
license?: string;
Citation.publicationDate
The publication date of the cited source, if available.
This property is only supported in the Vertex AI Gemini API (VertexAIBackend).
Signature:
publicationDate?: Date;
Citation.startIndex
Signature:
startIndex?: number;
Citation.title
The title of the cited source, if available.
This property is only supported in the Vertex AI Gemini API (VertexAIBackend).
Signature:
title?: string;
Citation.uri
Signature:
uri?: string;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# Citation interface\n\nA single citation.\n\n**Signature:** \n\n export interface Citation \n\nProperties\n----------\n\n| Property | Type | Description |\n|-------------------------------------------------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [endIndex](./ai.citation.md#citationendindex) | number | |\n| [license](./ai.citation.md#citationlicense) | string | |\n| [publicationDate](./ai.citation.md#citationpublicationdate) | Date | The publication date of the cited source, if available.This property is only supported in the Vertex AI Gemini API ([VertexAIBackend](./ai.vertexaibackend.md#vertexaibackend_class)). |\n| [startIndex](./ai.citation.md#citationstartindex) | number | |\n| [title](./ai.citation.md#citationtitle) | string | The title of the cited source, if available.This property is only supported in the Vertex AI Gemini API ([VertexAIBackend](./ai.vertexaibackend.md#vertexaibackend_class)). |\n| [uri](./ai.citation.md#citationuri) | string | |\n\nCitation.endIndex\n-----------------\n\n**Signature:** \n\n endIndex?: number;\n\nCitation.license\n----------------\n\n**Signature:** \n\n license?: string;\n\nCitation.publicationDate\n------------------------\n\nThe publication date of the cited source, if available.\n\nThis property is only supported in the Vertex AI Gemini API ([VertexAIBackend](./ai.vertexaibackend.md#vertexaibackend_class)).\n\n**Signature:** \n\n publicationDate?: Date;\n\nCitation.startIndex\n-------------------\n\n**Signature:** \n\n startIndex?: number;\n\nCitation.title\n--------------\n\nThe title of the cited source, if available.\n\nThis property is only supported in the Vertex AI Gemini API ([VertexAIBackend](./ai.vertexaibackend.md#vertexaibackend_class)).\n\n**Signature:** \n\n title?: string;\n\nCitation.uri\n------------\n\n**Signature:** \n\n uri?: string;"]]