GetConfig 获取配置信息
()
| 453 | |
| 454 | // GetConfig 获取配置信息 |
| 455 | func (m *LogicMemoryMiddleware) GetConfig() map[string]any { |
| 456 | return map[string]any{ |
| 457 | "enable_capture": m.config.EnableCapture, |
| 458 | "enable_injection": m.config.EnableInjection, |
| 459 | "max_memories": m.config.MaxMemories, |
| 460 | "min_confidence": m.config.MinConfidence, |
| 461 | "async_capture": m.config.AsyncCapture, |
| 462 | "injection_point": m.config.InjectionPoint, |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | // defaultNamespaceExtractor 默认的 namespace 提取器 |
| 467 | func defaultNamespaceExtractor(req *ModelRequest) string { |
no outgoing calls