import { OnModuleInit } from '@nestjs/common'; import { PrismaClient } from '@prisma/client'; import { PromptConfig, PromptMessage } from '../types'; import { ChatPrompt } from './chat-prompt'; export declare class PromptService implements OnModuleInit { private readonly db; private readonly cache; constructor(db: PrismaClient); onModuleInit(): Promise; /** * list prompt names * @returns prompt names */ listNames(): Promise; list(): Promise<{ name: string; messages: { content: string; params: import(".prisma/client").Prisma.JsonValue; role: import(".prisma/client").$Enums.AiPromptRole; }[]; config: import(".prisma/client").Prisma.JsonValue; action: string | null; model: string; }[]>; /** * get prompt messages by prompt name * @param name prompt name * @returns prompt messages */ get(name: string): Promise; set(name: string, model: string, messages: PromptMessage[], config?: PromptConfig | null): Promise; update(name: string, messages: PromptMessage[], config?: PromptConfig): Promise; delete(name: string): Promise; } //# sourceMappingURL=service.d.ts.map