feat(ai): expose global memory management api

This commit is contained in:
digua committed 2026-08-24 22:35:47 +08:00
1 parent ed8ab84b4b
commit 2938c42f9f
10 files changed
+375 -2

No files matched your search

+1
View File
@@ -221,6 +221,7 @@ export async function startHttpServer(options?: HttpServerOptions): Promise<{
aiContext: {
aiDataDir,
aiChatManager,
aiMemoryService,
assistantManager,
skillManagerCore,
llmConfigStore,
+3
View File
@@ -24,6 +24,7 @@ import type { PathProvider } from '@openchatlab/core'
import type {
DatabaseManager,
AIChatManager,
AIMemoryService,
AssistantManager,
SkillManagerCore,
LLMConfigStore,
@@ -59,6 +60,7 @@ import { getServerAiLogger } from '../../../ai/logger'
export interface AiContextOptions {
aiDataDir: string
aiChatManager: AIChatManager
aiMemoryService: AIMemoryService
assistantManager: AssistantManager
skillManagerCore: SkillManagerCore
llmConfigStore: LLMConfigStore
@@ -177,6 +179,7 @@ export function registerWebRoutes(
...(ai && {
aiDataDir: ai.aiDataDir,
aiChatManager: ai.aiChatManager,
aiMemoryService: ai.aiMemoryService,
assistantManager: ai.assistantManager,
skillManagerCore: ai.skillManagerCore,
llmConfigStore: ai.llmConfigStore,