cleanup
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
export const AI_PROMPTS = {
|
||||
|
||||
// Main tool selection prompt
|
||||
toolSelection: (mode: string, userQuery: string, selectionMethod: string, maxSelectedItems: number) => {
|
||||
const modeInstruction = mode === 'workflow'
|
||||
? 'Der Benutzer möchte einen UMFASSENDEN WORKFLOW mit mehreren Tools/Methoden über verschiedene Phasen. Wählen Sie 15-25 Tools aus, die den vollständigen Untersuchungslebenszyklus abdecken.'
|
||||
@@ -51,7 +50,6 @@ Antworten Sie NUR mit diesem JSON-Format:
|
||||
}`;
|
||||
},
|
||||
|
||||
// Scenario analysis prompt
|
||||
scenarioAnalysis: (isWorkflow: boolean, userQuery: string) => {
|
||||
const analysisType = isWorkflow ? 'forensische Szenario' : 'technische Problem';
|
||||
const considerations = isWorkflow ?
|
||||
@@ -74,7 +72,6 @@ ${considerations}
|
||||
WICHTIG: Antworten Sie NUR in fließendem deutschen Text ohne Listen, Aufzählungen oder Markdown-Formatierung. Maximum 150 Wörter.`;
|
||||
},
|
||||
|
||||
// Investigation approach prompt
|
||||
investigationApproach: (isWorkflow: boolean, userQuery: string) => {
|
||||
const approachType = isWorkflow ? 'Untersuchungsansatz' : 'Lösungsansatz';
|
||||
const considerations = isWorkflow ?
|
||||
@@ -96,7 +93,6 @@ ${considerations}
|
||||
WICHTIG: Antworten Sie NUR in fließendem deutschen Text ohne Listen oder Markdown. Maximum 150 Wörter.`;
|
||||
},
|
||||
|
||||
// Critical considerations prompt
|
||||
criticalConsiderations: (isWorkflow: boolean, userQuery: string) => {
|
||||
const considerationType = isWorkflow ? 'kritische forensische Überlegungen' : 'wichtige methodische Voraussetzungen';
|
||||
const aspects = isWorkflow ?
|
||||
@@ -179,7 +175,6 @@ WICHTIG:
|
||||
- "pros" soll die Stärken für diese spezifische Aufgabe hervorheben`;
|
||||
},
|
||||
|
||||
// Background knowledge selection prompt
|
||||
backgroundKnowledgeSelection: (userQuery: string, mode: string, selectedToolNames: string[], availableConcepts: any[]) => {
|
||||
return `Wählen Sie relevante forensische Konzepte für das Verständnis der empfohlenen Methodik.
|
||||
|
||||
@@ -200,7 +195,6 @@ Antworten Sie AUSSCHLIESSLICH mit diesem JSON-Format:
|
||||
]`;
|
||||
},
|
||||
|
||||
// Final recommendations prompt
|
||||
finalRecommendations: (isWorkflow: boolean, userQuery: string, selectedToolNames: string[]) => {
|
||||
const prompt = isWorkflow ?
|
||||
`Erstellen Sie eine Workflow-Empfehlung basierend auf DFIR-Prinzipien.
|
||||
@@ -225,7 +219,6 @@ WICHTIG: Antworten Sie NUR in fließendem deutschen Text ohne Listen oder Markdo
|
||||
}
|
||||
} as const;
|
||||
|
||||
// Type-safe prompt function with proper overloads
|
||||
export function getPrompt(key: 'toolSelection', mode: string, userQuery: string, selectionMethod: string, maxSelectedItems: number): string;
|
||||
export function getPrompt(key: 'scenarioAnalysis', isWorkflow: boolean, userQuery: string): string;
|
||||
export function getPrompt(key: 'investigationApproach', isWorkflow: boolean, userQuery: string): string;
|
||||
@@ -238,7 +231,6 @@ export function getPrompt(promptKey: keyof typeof AI_PROMPTS, ...args: any[]): s
|
||||
try {
|
||||
const promptFunction = AI_PROMPTS[promptKey];
|
||||
if (typeof promptFunction === 'function') {
|
||||
// Use type assertion since we've validated the function exists
|
||||
return (promptFunction as (...args: any[]) => string)(...args);
|
||||
} else {
|
||||
console.error(`[PROMPTS] Invalid prompt key: ${promptKey}`);
|
||||
|
||||
Reference in New Issue
Block a user