UNPKG

pulse-ai-utils

Version:

Utility functions and helpers for AI-powered applications

19 lines (18 loc) 522 B
export interface CacheParams { area: string; region?: string; country?: string; timeline?: string; buttonClickCount?: string; } export default class QueryCache { getCachedResult(prompt: string, location: CacheParams): Promise<any | null>; setCachedResult(prompt: string, location: CacheParams, result: any, options?: { model?: string; provider?: string; }): Promise<void>; /** * Generate a short hash of a string for ID generation */ private hashString; }