export class CreativeEnhancer {
llmClient;
id = "creative";
label = "🎨 Kreatywne rozwinięcie";
description = "Dodaje analogie, metafory, nieszablonowe kÄ…ty";
icon = "🎨";
systemPrompt = `You are a creative prompt refactoring assistant.
Rewrite the user's prompt with creative enhancement:
- Add analogies or metaphors that reframe the problem
- Present multiple angles or perspectives
- Use "what if" scenarios or hypothetical situations
- Add sensory or emotional language where appropriate
- Suggest unconventional approaches or combinations
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: Math.min(1.0, options.temperature * 1.5),
});
return {
id: this.id,
label: this.label,
description: this.description,
prompt: enhancedPrompt,
icon: this.icon,
};
}
}
//# sourceMappingURL=creative.js.map