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

Method GetConfig

pkg/middleware/logic_memory.go:455–464  ·  view source on GitHub ↗

GetConfig 获取配置信息

()

Source from the content-addressed store, hash-verified

453
454// GetConfig 获取配置信息
455func (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 提取器
467func defaultNamespaceExtractor(req *ModelRequest) string {

Callers 2

middlewareExampleFunction · 0.95

Calls

no outgoing calls

Tested by 1