export class SpecificityEnhancer {
llmClient;
id = "specificity";
label = "🎯 Konkretyzacja";
description = "Zamienia ogólniki w konkretne parametry, przykłady, dane";
icon = "🎯";
systemPrompt = `You are a specificity-enhancing prompt refactoring assistant.
Rewrite the user's prompt to be more concrete and detailed:
- Replace vague words with specific terms
- Add measurable parameters (length, format, quantity, timeframes)
- Include target audience specification
- Define the expected output format explicitly
Return ONLY the refactored prompt, no explanations.`;
constructor(llmClient) {
this.llmClient = llmClient;
}
async generate(originalPrompt, options) {
const enhancedPrompt = await this.llmClient.call({
systemPrompt: this.systemPrompt,
userPrompt: originalPrompt,
temperature: options.temperature * 0.6,
});
return {
id: this.id,
label: this.label,
description: this.description,
prompt: enhancedPrompt,
icon: this.icon,
};
}
}
//# sourceMappingURL=specificity.js.map