src / lenses / creative.ts
import { Lens } from "../types";
export class CreativeLens implements Lens {
readonly id = "creative";
readonly label = "🎨 Kreatywna perspektywa";
readonly description =
"Proponuje nieszablonowe podejścia i innowacyjne pomysły";
readonly icon = "🎨";
constructor(private llmClient: any) {}
async generate(originalPrompt: string, temperature: number): Promise<string> {
const systemPrompt = `You are a creative brainstorming assistant.
Reimagine the user's input with a focus on innovation, originality, and unconventional approaches.
Propose 3 distinct, creative variations.`;
return await this.llmClient.call({
systemPrompt,
userPrompt: originalPrompt,
temperature: Math.min(temperature + 0.2, 1.0),
});
}
}