Add cached Langfuse PromptService

This commit is contained in:
2026-08-12 20:52:10 +02:00
parent 580357a130
commit 81e9a20b14
4 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
export interface RawPrompt {
name: string;
version: number;
config: Record<string, unknown>;
compile(variables: Record<string, unknown>): { role: 'system' | 'user' | 'assistant'; content: string }[];
}
export interface PromptFetcher {
fetch(promptName: string): Promise<RawPrompt>;
}