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

Method SearchByType

pkg/memory/logic/store_mysql.go:301–303  ·  view source on GitHub ↗

SearchByType 按类型搜索

(ctx context.Context, namespace, memoryType string)

Source from the content-addressed store, hash-verified

299
300// SearchByType 按类型搜索
301func (s *MySQLStore) SearchByType(ctx context.Context, namespace, memoryType string) ([]*LogicMemory, error) {
302 return s.List(ctx, namespace, WithType(memoryType))
303}
304
305// SearchByScope 按作用域搜索
306func (s *MySQLStore) 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