Interface Citation.Builder

    • Method Detail

      • title

        Citation.Builder title​(String title)

        The title or identifier of the source document being cited.

        Parameters:
        title - The title or identifier of the source document being cited.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceContent

        Citation.Builder sourceContent​(Collection<CitationSourceContent> sourceContent)

        The specific content from the source document that was referenced or cited in the generated response.

        Parameters:
        sourceContent - The specific content from the source document that was referenced or cited in the generated response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceContent

        Citation.Builder sourceContent​(CitationSourceContent... sourceContent)

        The specific content from the source document that was referenced or cited in the generated response.

        Parameters:
        sourceContent - The specific content from the source document that was referenced or cited in the generated response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • location

        Citation.Builder location​(CitationLocation location)

        The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.

        Parameters:
        location - The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.