mirror of
https://github.com/FJurmanovic/sugarr.git
synced 2026-11-11 15:51:09 +00:00
Add cached Langfuse PromptService
This commit is contained in:
10
src/core/langfuse/PromptGateway.ts
Normal file
10
src/core/langfuse/PromptGateway.ts
Normal 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>;
|
||||
}
|
||||
Reference in New Issue
Block a user