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

Method SearchByScope

pkg/memory/logic/store_postgres.go:317–319  ·  view source on GitHub ↗

SearchByScope 按作用域搜索

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

Source from the content-addressed store, hash-verified

315
316// SearchByScope 按作用域搜索
317func (s *PostgreSQLStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) {
318 return s.List(ctx, namespace, WithScope(scope))
319}
320
321// GetTopK 获取 TopK Memory
322func (s *PostgreSQLStore) 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