UNPKG

@nomyx/assistant

Version:

A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)

12 lines (11 loc) 371 B
import { HistoryEntry, ILogger } from "./types/common"; export declare class RequestHistory { private logger?; private history; private maxLength; constructor(maxLength?: number, logger?: ILogger | undefined); addEntry(request: string, response: string): void; getHistory(): HistoryEntry[]; clear(): void; getFormattedHistory(): string; }