Aggregate Memories
memory.aggregateAggregate over the matched record set: numeric fields (importance, created_at, epoch) support count/sum/avg/min/max; categorical fields (source, domain, class, status, galaxy) support count only. Unsupported field/op is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | Aggregation operator | |
| field | No | Numeric: importance | created_at | epoch. Categorical (count only): source | domain | class | status | galaxy | |
| limit | No | Maximum candidates considered (default 50; must be >= 1) | |
| query | No | Full-text query selecting the memories to aggregate over | |
| metric | No | Alternative metric over matched records: count | session_count | session_span |