@nomyx/assistant
Version:
A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)
14 lines (13 loc) • 479 B
TypeScript
import { ILogger } from "./types";
export declare class ContextManager {
private logger?;
private context;
constructor(logger?: ILogger | undefined);
setInitialContext(initialContext: Record<string, any>): void;
updateContext(newContext: Record<string, any>): void;
getContext(): Record<string, any>;
getFormattedContext(): string;
clearContext(): void;
getContextValue(key: string): any;
setContextValue(key: string, value: any): void;
}