UNPKG

trellis

Version:

Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications

16 lines 602 B
/** * Base Context Manager Implementation */ import type { LLMMessage } from '../llm/types.js'; import { ContextManager } from './types.js'; export declare class BaseContextManager implements ContextManager { private history; constructor(initialHistory?: LLMMessage[]); addMessage(message: LLMMessage): void; getHistory(): LLMMessage[]; prune(targetTokenCount: number): Promise<void>; summarize(): Promise<string>; injectRagContext(query: string, limit?: number): Promise<void>; calculateTokenCount(message: LLMMessage): number; } //# sourceMappingURL=manager.d.ts.map