mirror of
https://github.com/FJurmanovic/sugarr.git
synced 2026-11-11 07:41:08 +00:00
11 lines
295 B
TypeScript
11 lines
295 B
TypeScript
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>;
|
|
}
|