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