Google Gemini · Schema

CitationSource

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

Agentic AIArtificial IntelligenceCode GenerationEmbeddingsGenerative AIImage GenerationLLMMachine LearningMultimodal

Properties

Name Type Description
startIndex integer Start of segment of the response that is attributed to this source.
endIndex integer End of the attributed segment, exclusive.
uri string URI that is attributed as a source for a portion of the text.
license string License for the GitHub project that is attributed as a source.
View JSON Schema on GitHub

JSON Schema

google-gemini-citationsource-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CitationSource",
  "title": "CitationSource",
  "type": "object",
  "description": "A citation to a source for a portion of a specific response.",
  "properties": {
    "startIndex": {
      "type": "integer",
      "format": "int32",
      "description": "Start of segment of the response that is attributed to this source."
    },
    "endIndex": {
      "type": "integer",
      "format": "int32",
      "description": "End of the attributed segment, exclusive."
    },
    "uri": {
      "type": "string",
      "description": "URI that is attributed as a source for a portion of the text."
    },
    "license": {
      "type": "string",
      "description": "License for the GitHub project that is attributed as a source."
    }
  }
}