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

Method SearchByType

pkg/memory/logic/store_inmemory.go:148–150  ·  view source on GitHub ↗

SearchByType 按类型搜索

(ctx context.Context, namespace, memoryType string)

Source from the content-addressed store, hash-verified

146
147// SearchByType 按类型搜索
148func (s *InMemoryStore) SearchByType(ctx context.Context, namespace, memoryType string) ([]*LogicMemory, error) {
149 return s.List(ctx, namespace, WithType(memoryType))
150}
151
152// SearchByScope 按作用域搜索
153func (s *InMemoryStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) {

Callers 1

Calls 2

ListMethod · 0.95
WithTypeFunction · 0.85

Tested by 1