@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and
21 lines (20 loc) • 682 B
TypeScript
export interface ChatMessage {
/** Role of the message sender */
role: "user" | "assistant" | "system";
/** Content of the message */
content: string;
/** Cached word count for performance */
wordCount?: number;
}
/**
* Defines the configuration for the ContextManager.
* This allows for easy customization of the summarization behavior.
*/
export interface ContextManagerConfig {
highWaterMarkWords: number;
lowWaterMarkWords: number;
summarizationModel: string;
summarizationProvider: string;
getSummarizationPrompt: (history: ChatMessage[], wordLimit: number) => string;
estimateWordCount: (history: ChatMessage[]) => number;
}