Class Citation.Builder

  • Enclosing class:
    Citation

    public static class Citation.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • start

        public Citation.Builder start​(Integer start)
        Counting from zero, the index of the text where the citation starts.
        Parameters:
        start - the value to set
        Returns:
        this builder
      • end

        public Citation.Builder end​(Integer end)
        Counting from zero, the index of the text that the citation ends after.
        Parameters:
        end - the value to set
        Returns:
        this builder
      • text

        public Citation.Builder text​(String text)
        The text of the citation.
        Parameters:
        text - the value to set
        Returns:
        this builder
      • documentIds

        public Citation.Builder documentIds​(List<String> documentIds)
        Identifiers for the documents cited in the current generated response.
        Parameters:
        documentIds - the value to set
        Returns:
        this builder