Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
export type CompileListOrigin = {
scope: string
index: number
search: { status?: string; q?: string }
}
declare module '@tanstack/react-router' {
interface HistoryState {
compileListOrigin?: CompileListOrigin
}
}
export function compileListReturn(
origin: CompileListOrigin | undefined,
scope: string,
currentIndex: number,
) {
const sameIdentity = origin?.scope === scope
return {
search: sameIdentity ? origin.search : {},
restoreHistory: sameIdentity && currentIndex === origin.index + 1,
}
}