@nomyx/assistant
Version:
A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)
17 lines (16 loc) • 482 B
TypeScript
import { ChatMessage, ChatOptions, ProviderResponse } from '../../../types/chat';
import { Tool } from '../../../types/tool';
interface CacheKey {
messages: ChatMessage[];
options: ChatOptions;
tools?: Tool[];
}
export declare class OpenAICache {
private cache;
private generateCacheKey;
set(key: CacheKey, value: ProviderResponse): void;
get(key: CacheKey): ProviderResponse | undefined;
has(key: CacheKey): boolean;
clear(): void;
}
export {};