/**
 * AI Rules prompt formatting.
 *
 * Enterprise users can define custom rules/preferences that the agent
 * must follow. This module formats those rules into a prompt section
 * that gets appended to the system prompt.
 *
 * Mirrors the LG Python equivalent in backend/agent/prompts/system_prompt.py.
 */
const AI_RULES_TEMPLATE = `
======================
## AI Rules & Preferences
======================
The following custom rules and preferences MUST be followed:

{aiRules}`;
/**
 * Format AI rules into a prompt section.
 *
 * Returns an empty string when rules are absent/empty, otherwise returns
 * the formatted block ready to be appended to the system prompt.
 */
export function formatAiRulesPrompt(aiRules) {
    if (!aiRules || !aiRules.trim()) {
        return '';
    }
    return AI_RULES_TEMPLATE.replace('{aiRules}', aiRules.trim());
}
//# sourceMappingURL=ai-rules.js.map