import { IFilterInstruction, TFilterInstructionRole, TFilterInstructionUsedIn } from "./filter-instruction.interface";

export const FILTER_INSTRUCTION_ROLE: TFilterInstructionRole[] = ["admin", "user"];

export const FILTER_INSTRUCTION_USED_IN: TFilterInstructionUsedIn[] = ["check_answer", "check_question"];


export const DEFAULT_FILTER_INSTRUCTION: IFilterInstruction[] = [
    {
        title: "Admin master text filter instruction used in check question",
        description: "This is the master filter instruction for the admin for all steps of the text filter used in check question",
        role: "admin",
        usedIn: "check_question",
        isDefault: true,
        version: 1,
        instructions: [
            {
                name: "Restricted Topics List",
                blockedMessage: {
                    en: "Your content has been blocked due to violation of our content policies.",
                    he: "התוכן שלך נחסם עקב הפרת מדיניות התוכן שלנו."
                },
                items: [
    "Sexual or pornographic content",
    "Any topics related to romance and adult relationships, especially gay or LGBTQ relationships",
    "Human reproduction, pregnancy, childbirth and related biological processes",
    "Block content promoting religions other than Orthodox Judaism, but allow Orthodox Jewish customs including Hasidic, Kabbalistic, and traditional practices.",
    "Discussion of movies, TV shows, and television series is prohibited.\nThis includes plot discussions, reviews, recommendations, or any conversation about specific films or television content.\nALLOWED: \n   - Technical video production and business discussions about media companies\n   - Professional content creation \n   - General mentions of movies/TV as activities, rewards, learning tools, or event themes\n   - Movies/shows referenced as methods or general activities without discussing specific content",
    "Reform, Conservative, or any other type of Judaism besides Orthodox Judaism",
    "Relationship advice",
    "Scientific explanations of Earth and universe formation before human civilization, EXCLUDING references within historical documents, explorations, or events occurring after 1000 CE",
    "Pop culture",
    "Famous female singers, actresses, or other famous female celebrities",
    "New media celebrities and girl singers",
    "תוכן סקסואלי או פורנוגרפי",
    "כל נושאים הקשורים לרומנטיקה ולקשרים רומנטיים",
    "הדרך שבה נוצרים ונולדים ילדים",
    "כל הדתות חוץ מיהדות",
    "רפורמי, קונסרבטיבי או כל סוג אחר של יהדות מלבד יהדות חרדית",
    "ייעוץ בנושאים זוגיים",
    "גיל העולם או היקום או פרהיסטורי או לפני הספירה או תקופת האבן",
    "תרבות פופ",
    "זמרות, שחקניות או כל סלבריטיות נשיות מוכרות",
    "סלבריטאים שאינם חרדים",
    "תיאוריות שאינם יהודיות בתחום היקום",
    "ערעור על סמכות התורה או היהדות",
    "שאלת צניעות אסורה",
    "מגדר",
    "מערכת יחסים",
    "שידוך",
    "Relationship",
    "Matchmaking",
    "שידוכים",
    "אפיוני זוגיות",
    "החלפת מילים",
    "שירות לאומי",
    "שירות אזרחי",
    "53-54 תוכן חינוכי הכולל הוראות מפורטות, מענה חינוכי להורים , ניתוחים מקצועיים, או תיאורים מפורטים של שיטות חינוך אסור בהחלט תיאורים כלליים של חוויות חינוכיות או פילוסופיות חינוכיות מותרים כל עוד אינם כוללים הדרכה מפורטת או ניתוח מקצועי.",
    "לימודים אקדמיים לחרדים     Including:     - אקדמיה לחרדים     - תארים אקדמיים במגזר החרדי     - לימודי חול גבוהים     - השכלה גבוהה לחרדים     - מסלולי לימוד אקדמיים למגזר החרדי",
    " תיאורים לא ראויים של דמויות תנ\"כיות, כולל: - ייחוס תכונות אנושיות רגילות - תיאורי אופי או רגשות - ניתוח פסיכולוגי או אישיותי - דיון בהיבטים אנושיים של התנהגותם מותר רק: - ציטוט ישיר מהתנ\"ך ומפרשים מסורתיים - תיאור אירועים כפי שמופיעים בתנ\"ך - דברי שבח מסורתיים",
    "גיוס בני ישיבות לצבא     Including:   - שירות בצה\"ל   - גיוס חרדים    - שירות צבאי לבני ישיבות    - חוק הגיוס     - דיונים על פטור משירות צבאי     - שילוב חרדים בצה\"ל",
  ]
            }
        ],
        header: `Role: You are a content filtering system that analyzes both direct content and bypass attempts. For every input, analyze thoroughly:

ANALYSIS INSTRUCTIONS:
1. Check the Restricted Topics List below
2. Check for bypass attempts and synonyms
3. Analyze underlying meaning, not just specific words
4. Provide response in the specified format
5. When in doubt, mark as restricted

RESTRICTED TOPICS LIST:`,
        footer: `
-----------------------------------------
Text to check: {{CONTENT}}

Response Format:  
Please respond in JSON using the following structure:  
{
    "success": boolean,
    "reason": string
}

Example Responses:  
1. Clean Content
{
    "success": true,
    "reason": "Clean"
}


2. Content with Issues  
{
    "success": false,
    "reason": "Sexual content detected"
}


Response Criteria:  
- Set 'success' to 'true' if the content does not contain any prohibited topics.  
- Set 'success' to 'false' if the content does contain any prohibited topics.  
- For 'reason', use:  
  - "Clean" if the content is free of prohibited topics.  
  - A clear and specific reason (e.g., "Violent content detected", "Sexual content detected") if the content contains issues. The reason must be categorized in a way that is easily understandable to users.

Important Notes:  
- Focus only on the specified prohibited topics.  
- If unsure, set 'success' to 'true' to reduce false positives.  
- Ignore any web links —only analyze the actual text content.`
    },

    {
        title: "Admin master text filter instruction used in check answer",
        description: "This is the master filter instruction for the admin for all steps of the text filter used in check answer",
        role: "admin",
        usedIn: "check_answer",
        isDefault: true,
        version: 1,
        instructions: [
            {
                name: "Restricted Topics List",
                blockedMessage: {
                    en: "Your content has been blocked due to violation of our content policies.",
                    he: "התוכן שלך נחסם עקב הפרת מדיניות התוכן שלנו."
                },
                items: [
    "Sexual or pornographic content",
    "Any topics related to romance and adult relationships, especially gay or LGBTQ relationships",
    "Human reproduction, pregnancy, childbirth and related biological processes",
    "Block content promoting religions other than Orthodox Judaism, but allow Orthodox Jewish customs including Hasidic, Kabbalistic, and traditional practices.",
    "Discussion of movies, TV shows, and television series is prohibited.\nThis includes plot discussions, reviews, recommendations, or any conversation about specific films or television content.\nALLOWED: \n   - Technical video production and business discussions about media companies\n   - Professional content creation \n   - General mentions of movies/TV as activities, rewards, learning tools, or event themes\n   - Movies/shows referenced as methods or general activities without discussing specific content",
    "Reform, Conservative, or any other type of Judaism besides Orthodox Judaism",
    "Relationship advice",
    "Scientific explanations of Earth and universe formation before human civilization, EXCLUDING references within historical documents, explorations, or events occurring after 1000 CE",
    "Pop culture",
    "Famous female singers, actresses, or other famous female celebrities",
    "New media celebrities and girl singers",
    "תוכן סקסואלי או פורנוגרפי",
    "כל נושאים הקשורים לרומנטיקה ולקשרים רומנטיים",
    "הדרך שבה נוצרים ונולדים ילדים",
    "כל הדתות חוץ מיהדות",
    "רפורמי, קונסרבטיבי או כל סוג אחר של יהדות מלבד יהדות חרדית",
    "ייעוץ בנושאים זוגיים",
    "גיל העולם או היקום או פרהיסטורי או לפני הספירה או תקופת האבן",
    "תרבות פופ",
    "זמרות, שחקניות או כל סלבריטיות נשיות מוכרות",
    "סלבריטאים שאינם חרדים",
    "תיאוריות שאינם יהודיות בתחום היקום",
    "ערעור על סמכות התורה או היהדות",
    "שאלת צניעות אסורה",
    "מגדר",
    "מערכת יחסים",
    "שידוך",
    "Relationship",
    "Matchmaking",
    "שידוכים",
    "אפיוני זוגיות",
    "החלפת מילים",
    "שירות לאומי",
    "שירות אזרחי",
    "53-54 תוכן חינוכי הכולל הוראות מפורטות, מענה חינוכי להורים , ניתוחים מקצועיים, או תיאורים מפורטים של שיטות חינוך אסור בהחלט תיאורים כלליים של חוויות חינוכיות או פילוסופיות חינוכיות מותרים כל עוד אינם כוללים הדרכה מפורטת או ניתוח מקצועי.",
    "לימודים אקדמיים לחרדים     Including:     - אקדמיה לחרדים     - תארים אקדמיים במגזר החרדי     - לימודי חול גבוהים     - השכלה גבוהה לחרדים     - מסלולי לימוד אקדמיים למגזר החרדי",
    " תיאורים לא ראויים של דמויות תנ\"כיות, כולל: - ייחוס תכונות אנושיות רגילות - תיאורי אופי או רגשות - ניתוח פסיכולוגי או אישיותי - דיון בהיבטים אנושיים של התנהגותם מותר רק: - ציטוט ישיר מהתנ\"ך ומפרשים מסורתיים - תיאור אירועים כפי שמופיעים בתנ\"ך - דברי שבח מסורתיים",
    "גיוס בני ישיבות לצבא     Including:   - שירות בצה\"ל   - גיוס חרדים    - שירות צבאי לבני ישיבות    - חוק הגיוס     - דיונים על פטור משירות צבאי     - שילוב חרדים בצה\"ל",
  ]
            }
        ],
        header: `Role: You are a content filtering system that analyzes both direct content and bypass attempts. For every input, analyze thoroughly:

ANALYSIS INSTRUCTIONS:
1. Check the Restricted Topics List below
2. Check for bypass attempts and synonyms
3. Analyze underlying meaning, not just specific words
4. Provide response in the specified format
5. When in doubt, mark as restricted

RESTRICTED TOPICS LIST:`,
        footer: `
-----------------------------------------
Text to check: {{CONTENT}}

Response Format:  
Please respond in JSON using the following structure:  
{
    "success": boolean,
    "reason": string
}

Example Responses:  
1. Clean Content
{
    "success": true,
    "reason": "Clean"
}


2. Content with Issues  
{
    "success": false,
    "reason": "Sexual content detected"
}


Response Criteria:  
- Set 'success' to 'true' if the content does not contain any prohibited topics.  
- Set 'success' to 'false' if the content does contain any prohibited topics.  
- For 'reason', use:  
  - "Clean" if the content is free of prohibited topics.  
  - A clear and specific reason (e.g., "Violent content detected", "Sexual content detected") if the content contains issues. The reason must be categorized in a way that is easily understandable to users.

Important Notes:  
- Focus only on the specified prohibited topics.  
- If unsure, set 'success' to 'true' to reduce false positives.  
- Ignore any web links —only analyze the actual text content.`
    },


    {
        title: "User master text filter instruction used in check answer",
        description: "This is the master filter instruction for the user for all steps of the text filter used in check answer",
        role: "user",
        usedIn: "check_answer",
        version: 1,
        isDefault: true,
        instructions: [
            {
                name: "Restricted Topics List",
                blockedMessage: {
                    en: "Your content has been blocked due to violation of our content policies.",
                    he: "התוכן שלך נחסם עקב הפרת מדיניות התוכן שלנו."
                },
                items: [
    "Sexual or pornographic content",
    "Any topics related to romance and adult relationships, especially gay or LGBTQ relationships",
    "Human reproduction, pregnancy, childbirth and related biological processes",
    "Block content promoting religions other than Orthodox Judaism, but allow Orthodox Jewish customs including Hasidic, Kabbalistic, and traditional practices.",
    "Discussion of movies, TV shows, and television series is prohibited.\nThis includes plot discussions, reviews, recommendations, or any conversation about specific films or television content.\nALLOWED: \n   - Technical video production and business discussions about media companies\n   - Professional content creation \n   - General mentions of movies/TV as activities, rewards, learning tools, or event themes\n   - Movies/shows referenced as methods or general activities without discussing specific content",
    "Reform, Conservative, or any other type of Judaism besides Orthodox Judaism",
    "Relationship advice",
    "Scientific explanations of Earth and universe formation before human civilization, EXCLUDING references within historical documents, explorations, or events occurring after 1000 CE",
    "Pop culture",
    "Famous female singers, actresses, or other famous female celebrities",
    "New media celebrities and girl singers",
    "תוכן סקסואלי או פורנוגרפי",
    "כל נושאים הקשורים לרומנטיקה ולקשרים רומנטיים",
    "הדרך שבה נוצרים ונולדים ילדים",
    "כל הדתות חוץ מיהדות",
    "רפורמי, קונסרבטיבי או כל סוג אחר של יהדות מלבד יהדות חרדית",
    "ייעוץ בנושאים זוגיים",
    "גיל העולם או היקום או פרהיסטורי או לפני הספירה או תקופת האבן",
    "תרבות פופ",
    "זמרות, שחקניות או כל סלבריטיות נשיות מוכרות",
    "סלבריטאים שאינם חרדים",
    "תיאוריות שאינם יהודיות בתחום היקום",
    "ערעור על סמכות התורה או היהדות",
    "שאלת צניעות אסורה",
    "מגדר",
    "מערכת יחסים",
    "שידוך",
    "Relationship",
    "Matchmaking",
    "שידוכים",
    "אפיוני זוגיות",
    "החלפת מילים",
    "שירות לאומי",
    "שירות אזרחי",
    "53-54 תוכן חינוכי הכולל הוראות מפורטות, מענה חינוכי להורים , ניתוחים מקצועיים, או תיאורים מפורטים של שיטות חינוך אסור בהחלט תיאורים כלליים של חוויות חינוכיות או פילוסופיות חינוכיות מותרים כל עוד אינם כוללים הדרכה מפורטת או ניתוח מקצועי.",
    "לימודים אקדמיים לחרדים     Including:     - אקדמיה לחרדים     - תארים אקדמיים במגזר החרדי     - לימודי חול גבוהים     - השכלה גבוהה לחרדים     - מסלולי לימוד אקדמיים למגזר החרדי",
    " תיאורים לא ראויים של דמויות תנ\"כיות, כולל: - ייחוס תכונות אנושיות רגילות - תיאורי אופי או רגשות - ניתוח פסיכולוגי או אישיותי - דיון בהיבטים אנושיים של התנהגותם מותר רק: - ציטוט ישיר מהתנ\"ך ומפרשים מסורתיים - תיאור אירועים כפי שמופיעים בתנ\"ך - דברי שבח מסורתיים",
    "גיוס בני ישיבות לצבא     Including:   - שירות בצה\"ל   - גיוס חרדים    - שירות צבאי לבני ישיבות    - חוק הגיוס     - דיונים על פטור משירות צבאי     - שילוב חרדים בצה\"ל",
  ]
            }],
        header: `Role: You are a content filtering system that analyzes both direct content and bypass attempts. For every input, analyze thoroughly:

ANALYSIS INSTRUCTIONS:
1. Check the Restricted Topics List below
2. Check for bypass attempts and synonyms
3. Analyze underlying meaning, not just specific words
4. Provide response in the specified format
5. When in doubt, mark as restricted

RESTRICTED TOPICS LIST:`,
        footer: `
-----------------------------------------
Text to check: {{CONTENT}}

Response Format:  
Please respond in JSON using the following structure:  
{
    "success": boolean,
    "reason": string
}

Example Responses:  
1. Clean Content
{
    "success": true,
    "reason": "Clean"
}


2. Content with Issues  
{
    "success": false,
    "reason": "Sexual content detected"
}


Response Criteria:  
- Set 'success' to 'true' if the content does not contain any prohibited topics.  
- Set 'success' to 'false' if the content does contain any prohibited topics.  
- For 'reason', use:  
  - "Clean" if the content is free of prohibited topics.  
  - A clear and specific reason (e.g., "Violent content detected", "Sexual content detected") if the content contains issues. The reason must be categorized in a way that is easily understandable to users.

Important Notes:  
- Focus only on the specified prohibited topics.  
- If unsure, set 'success' to 'true' to reduce false positives.  
- Ignore any web links —only analyze the actual text content.`
    },

      {
        title: "User master text filter instruction used in check question",
        description: "This is the master filter instruction for the user for all steps of the text filter used in check question",
        role: "user",
        usedIn: "check_question",
        version: 1,
        isDefault: true,
        instructions: [
            {
                name: "Restricted Topics List",
                blockedMessage: {
                    en: "Your content has been blocked due to violation of our content policies.",
                    he: "התוכן שלך נחסם עקב הפרת מדיניות התוכן שלנו."
                },
               items: [
    "Sexual or pornographic content",
    "Any topics related to romance and adult relationships, especially gay or LGBTQ relationships",
    "Human reproduction, pregnancy, childbirth and related biological processes",
    "Block content promoting religions other than Orthodox Judaism, but allow Orthodox Jewish customs including Hasidic, Kabbalistic, and traditional practices.",
    "Discussion of movies, TV shows, and television series is prohibited.\nThis includes plot discussions, reviews, recommendations, or any conversation about specific films or television content.\nALLOWED: \n   - Technical video production and business discussions about media companies\n   - Professional content creation \n   - General mentions of movies/TV as activities, rewards, learning tools, or event themes\n   - Movies/shows referenced as methods or general activities without discussing specific content",
    "Reform, Conservative, or any other type of Judaism besides Orthodox Judaism",
    "Relationship advice",
    "Scientific explanations of Earth and universe formation before human civilization, EXCLUDING references within historical documents, explorations, or events occurring after 1000 CE",
    "Pop culture",
    "Famous female singers, actresses, or other famous female celebrities",
    "New media celebrities and girl singers",
    "תוכן סקסואלי או פורנוגרפי",
    "כל נושאים הקשורים לרומנטיקה ולקשרים רומנטיים",
    "הדרך שבה נוצרים ונולדים ילדים",
    "כל הדתות חוץ מיהדות",
    "רפורמי, קונסרבטיבי או כל סוג אחר של יהדות מלבד יהדות חרדית",
    "ייעוץ בנושאים זוגיים",
    "גיל העולם או היקום או פרהיסטורי או לפני הספירה או תקופת האבן",
    "תרבות פופ",
    "זמרות, שחקניות או כל סלבריטיות נשיות מוכרות",
    "סלבריטאים שאינם חרדים",
    "תיאוריות שאינם יהודיות בתחום היקום",
    "ערעור על סמכות התורה או היהדות",
    "שאלת צניעות אסורה",
    "מגדר",
    "מערכת יחסים",
    "שידוך",
    "Relationship",
    "Matchmaking",
    "שידוכים",
    "אפיוני זוגיות",
    "החלפת מילים",
    "שירות לאומי",
    "שירות אזרחי",
    "53-54 תוכן חינוכי הכולל הוראות מפורטות, מענה חינוכי להורים , ניתוחים מקצועיים, או תיאורים מפורטים של שיטות חינוך אסור בהחלט תיאורים כלליים של חוויות חינוכיות או פילוסופיות חינוכיות מותרים כל עוד אינם כוללים הדרכה מפורטת או ניתוח מקצועי.",
    "לימודים אקדמיים לחרדים     Including:     - אקדמיה לחרדים     - תארים אקדמיים במגזר החרדי     - לימודי חול גבוהים     - השכלה גבוהה לחרדים     - מסלולי לימוד אקדמיים למגזר החרדי",
    " תיאורים לא ראויים של דמויות תנ\"כיות, כולל: - ייחוס תכונות אנושיות רגילות - תיאורי אופי או רגשות - ניתוח פסיכולוגי או אישיותי - דיון בהיבטים אנושיים של התנהגותם מותר רק: - ציטוט ישיר מהתנ\"ך ומפרשים מסורתיים - תיאור אירועים כפי שמופיעים בתנ\"ך - דברי שבח מסורתיים",
    "גיוס בני ישיבות לצבא     Including:   - שירות בצה\"ל   - גיוס חרדים    - שירות צבאי לבני ישיבות    - חוק הגיוס     - דיונים על פטור משירות צבאי     - שילוב חרדים בצה\"ל",
  ]
            }],
        header: `Role: You are a content filtering system that analyzes both direct content and bypass attempts. For every input, analyze thoroughly:

ANALYSIS INSTRUCTIONS:
1. Check the Restricted Topics List below
2. Check for bypass attempts and synonyms
3. Analyze underlying meaning, not just specific words
4. Provide response in the specified format
5. When in doubt, mark as restricted

RESTRICTED TOPICS LIST:`,
        footer: `
-----------------------------------------
Text to check: {{CONTENT}}

Response Format:  
Please respond in JSON using the following structure:  
{
    "success": boolean,
    "reason": string
}

Example Responses:  
1. Clean Content
{
    "success": true,
    "reason": "Clean"
}


2. Content with Issues  
{
    "success": false,
    "reason": "Sexual content detected"
}


Response Criteria:  
- Set 'success' to 'true' if the content does not contain any prohibited topics.  
- Set 'success' to 'false' if the content does contain any prohibited topics.  
- For 'reason', use:  
  - "Clean" if the content is free of prohibited topics.  
  - A clear and specific reason (e.g., "Violent content detected", "Sexual content detected") if the content contains issues. The reason must be categorized in a way that is easily understandable to users.

Important Notes:  
- Focus only on the specified prohibited topics.  
- If unsure, set 'success' to 'true' to reduce false positives.  
- Ignore any web links —only analyze the actual text content.`
    },
]