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

Method SearchByScope

pkg/memory/logic/store_mysql.go:306–308  ·  view source on GitHub ↗

SearchByScope 按作用域搜索

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

Source from the content-addressed store, hash-verified

304
305// SearchByScope 按作用域搜索
306func (s *MySQLStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) {
307 return s.List(ctx, namespace, WithScope(scope))
308}
309
310// GetTopK 获取 TopK Memory
311func (s *MySQLStore) GetTopK(ctx context.Context, namespace string, k int, orderBy OrderBy) ([]*LogicMemory, error) {

Callers

nothing calls this directly

Calls 2

ListMethod · 0.95
WithScopeFunction · 0.85

Tested by

no test coverage detected