import { Enhancer, EnhancementVariant, GenerationOptions } from "../types";
export class TechnicalEnhancer implements Enhancer {
readonly id = "technical";
readonly label = "⚙️ Precyzja techniczna";
readonly description =
"Dodaje terminologię branżową, parametry, wersje, specyfikacje";
readonly icon = "⚙️";
readonly systemPrompt = `You are a technical precision-focused prompt refactoring assistant.
Rewrite the user's prompt with technical accuracy:
- Add specific version numbers for libraries, frameworks, runtimes
- Include exact parameter names, configuration options
- Specify protocols, standards, data formats
- Add performance requirements (latency, throughput, memory)
- Include security considerations (OWASP, best practices)
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.4,
});
return {
id: this.id,
label: this.label,
description: this.description,
prompt: enhancedPrompt,
icon: this.icon,
};
}
}