Back to Firebase Js Sdk

Citation interface

docs-devsite/ai.citation.md

12.12.12.1 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

Citation interface

A single citation.

<b>Signature:</b>

typescript
export interface Citation 

Properties

PropertyTypeDescription
endIndexnumber
licensestring
publicationDateDateThe publication date of the cited source, if available.<!-- -->This property is only supported in the Vertex AI Gemini API (VertexAIBackend<!-- -->).
startIndexnumber
titlestringThe title of the cited source, if available.<!-- -->This property is only supported in the Vertex AI Gemini API (VertexAIBackend<!-- -->).
uristring

Citation.endIndex

<b>Signature:</b>

typescript
endIndex?: number;

Citation.license

<b>Signature:</b>

typescript
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<!-- -->).

<b>Signature:</b>

typescript
publicationDate?: Date;

Citation.startIndex

<b>Signature:</b>

typescript
startIndex?: number;

Citation.title

The title of the cited source, if available.

This property is only supported in the Vertex AI Gemini API (VertexAIBackend<!-- -->).

<b>Signature:</b>

typescript
title?: string;

Citation.uri

<b>Signature:</b>

typescript
uri?: string;