SearchByScope 按作用域搜索
(ctx context.Context, namespace string, scope MemoryScope)
| 304 | |
| 305 | // SearchByScope 按作用域搜索 |
| 306 | func (s *MySQLStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) { |
| 307 | return s.List(ctx, namespace, WithScope(scope)) |
| 308 | } |
| 309 | |
| 310 | // GetTopK 获取 TopK Memory |
| 311 | func (s *MySQLStore) GetTopK(ctx context.Context, namespace string, k int, orderBy OrderBy) ([]*LogicMemory, error) { |