"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildAIContextSystemPrompt = buildAIContextSystemPrompt;
const templateStrings_1 = require("./templateStrings.js");
const toYamlLike_1 = require("./toYamlLike.js");
/**
 * Formats AI data entries into a system prompt string.
 * Uses YAML-like format by default, can be overridden via options.formatData.
 * Uses prompt builder to build the system prompt from **Template Literal**. See `createDefaultSystemPromptBuilder` for more details.
 */
function buildAIContextSystemPrompt(entries, options = {}) {
    var _a, _b;
    if (entries.length === 0)
        return '';
    const builder = (0, templateStrings_1.createDefaultSystemPromptBuilder)(entries, {
        formatData: (_a = options.formatData) !== null && _a !== void 0 ? _a : toYamlLike_1.toYamlLike,
    });
    const template = (_b = options.template) !== null && _b !== void 0 ? _b : templateStrings_1.DEFAULT_SYSTEM_PROMPT_TEMPLATE;
    return builder(...template);
}
//# sourceMappingURL=buildAIContextSystemPrompt.js.map
