Class: OutputAggregator

OutputAggregator(format, outputPath)

Class representing an output aggregator.

Constructor

new OutputAggregator(format, outputPath)

Creates an instance of OutputAggregator.

Parameters:
Name Type Default Description
format string markdown

The format to aggregate content into ('markdown' or 'json').

outputPath string llm-pack-output

The path where the aggregated output will be saved.

Source:

Methods

aggregateContents(contents) → {string|Object}

Aggregates contents.

Parameters:
Name Type Description
contents Array

An array of content objects to aggregate.

Source:
Returns:

The aggregated content.

Type
string | Object

(async) saveOutput(content)

Saves the aggregated content to the output file.

Parameters:
Name Type Description
content string | Object

The aggregated content to save.

Source: