Represents a summary composed of multiple chunks. If a chunk contains a claim, it should be grounded by representative comments.

Constructors

Properties

Methods

Constructors

Properties

chunks: SummaryChunk[]

An array of SummaryChunk objects, each representing a part of the summary.

comments: Comment[]

Methods

  • Returns the text of the summary, formatted according to the specified citation format.

    Parameters

    • format: CitationFormat

      The desired format for citations. Can be "XML" or "MARKDOWN".

    Returns string

    The formatted summary text. Throws an error if an unsupported format is provided.