import { Enhancer, EnhancementVariant, GenerationOptions } from "../types";
export class SpecificityEnhancer implements Enhancer {
readonly id = "specificity";
readonly label = "🎯 Konkretyzacja";
readonly description =
"Zamienia ogólniki w konkretne parametry, przykłady, dane";
readonly icon = "🎯";
readonly 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(private llmClient: any) {}
async generate(
originalPrompt: string,
options: GenerationOptions,
): Promise<EnhancementVariant> {
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,
};
}
}