@notes-sync/service
Version:
Background service for AI-powered note synchronization
16 lines (15 loc) • 577 B
TypeScript
import { AIConfig, GenerateQuoteResponse } from '@notes-sync/shared';
export declare class AIService {
private config;
private provider?;
private lastQuoteTime;
private quoteCooldownMs;
constructor(config: AIConfig);
private initializeProvider;
isEnabled(): boolean;
isDailyQuotesEnabled(): boolean;
generateDailyQuote(context?: string): Promise<GenerateQuoteResponse | null>;
private getFallbackQuote;
generateQuoteWithFallback(context?: string): Promise<GenerateQuoteResponse>;
processQuery(prompt: string): Promise<string>;
}