export class ConciseEnhancer {
llmClient;
id = "concise";
label = "✂️ Kompresja";
description = "Skraca prompt do minimum słów bez utraty istotnych informacji";
icon = "✂️";
systemPrompt = `You are a conciseness-focused prompt refactoring assistant.
Rewrite the user's prompt as compact as possible:
- Remove filler words, greetings, small talk
- Eliminate redundancy and rephrasing of the same point
- Use imperative mood (command-style, not requests)
- Merge related requirements into single statements
- Keep ALL substantive information — no loss of meaning
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.3,
});
return {
id: this.id,
label: this.label,
description: this.description,
prompt: enhancedPrompt,
icon: this.icon,
};
}
}
//# sourceMappingURL=concise.js.map