fix: clarify conflict and response style prompts
Conflict resolution prompts now ask for an analysis-first strategy Response style instructions are wrapped as system reminders Prompt templates stay separate from reminder formatting
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const SYSTEM_REMINDER_OPEN = '<system-reminder>';
|
||||
const SYSTEM_REMINDER_CLOSE = '</system-reminder>';
|
||||
|
||||
export const wrapSystemReminder = (text: string): string => {
|
||||
const trimmed = text.trim();
|
||||
if (!trimmed) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (trimmed.startsWith(SYSTEM_REMINDER_OPEN) && trimmed.endsWith(SYSTEM_REMINDER_CLOSE)) {
|
||||
return trimmed;
|
||||
}
|
||||
|
||||
return `${SYSTEM_REMINDER_OPEN}\n${trimmed}\n${SYSTEM_REMINDER_CLOSE}`;
|
||||
};
|
||||
Reference in New Issue
Block a user