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