MCPcopy Create free account
hub / github.com/astercloud/aster / ReloadMemory

Method ReloadMemory

pkg/middleware/agent_memory.go:230–233  ·  view source on GitHub ↗

ReloadMemory 重新加载记忆(用于动态更新)

(ctx context.Context)

Source from the content-addressed store, hash-verified

228
229// ReloadMemory 重新加载记忆(用于动态更新)
230func (m *AgentMemoryMiddleware) ReloadMemory(ctx context.Context) error {
231 m.memoryLoaded = false
232 return m.OnAgentStart(ctx, "reload")
233}
234
235// GetConfig 获取配置信息
236func (m *AgentMemoryMiddleware) GetConfig() map[string]any {

Calls 1

OnAgentStartMethod · 0.95

Tested by 1