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

Method SearchByScope

pkg/memory/logic/store_inmemory.go:153–155  ·  view source on GitHub ↗

SearchByScope 按作用域搜索

(ctx context.Context, namespace string, scope MemoryScope)

Source from the content-addressed store, hash-verified

151
152// SearchByScope 按作用域搜索
153func (s *InMemoryStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) {
154 return s.List(ctx, namespace, WithScope(scope))
155}
156
157// GetTopK 获取 TopK Memory
158func (s *InMemoryStore) GetTopK(ctx context.Context, namespace string, k int, orderBy OrderBy) ([]*LogicMemory, error) {

Callers 1

Calls 2

ListMethod · 0.95
WithScopeFunction · 0.85

Tested by 1