import { DEFAULT_SYSTEM_PROMPT_TEMPLATE, createDefaultSystemPromptBuilder } from "./templateStrings.js";
import { toYamlLike } from "./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.
 */
export function buildAIContextSystemPrompt(entries, options = {}) {
    var _a, _b;
    if (entries.length === 0)
        return '';
    const builder = createDefaultSystemPromptBuilder(entries, {
        formatData: (_a = options.formatData) !== null && _a !== void 0 ? _a : toYamlLike,
    });
    const template = (_b = options.template) !== null && _b !== void 0 ? _b : DEFAULT_SYSTEM_PROMPT_TEMPLATE;
    return builder(...template);
}
//# sourceMappingURL=buildAIContextSystemPrompt.js.map
