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

Method SearchByType

pkg/memory/logic/store_postgres.go:312–314  ·  view source on GitHub ↗

SearchByType 按类型搜索

(ctx context.Context, namespace, memoryType string)

Source from the content-addressed store, hash-verified

310
311// SearchByType 按类型搜索
312func (s *PostgreSQLStore) SearchByType(ctx context.Context, namespace, memoryType string) ([]*LogicMemory, error) {
313 return s.List(ctx, namespace, WithType(memoryType))
314}
315
316// SearchByScope 按作用域搜索
317func (s *PostgreSQLStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) {

Callers

nothing calls this directly

Calls 2

ListMethod · 0.95
WithTypeFunction · 0.85

Tested by

no test coverage detected