consolidate_memories
Merge or link similar memories to reduce redundancy and strengthen recall. Preview changes before applying, or auto-detect clusters using a cohesion threshold.
Instructions
Merge or link similar memories algorithmically.
Args: cluster_id: Cluster UUID to act on (required unless auto_detect=True). mode: "preview" (no changes), "apply" (merge), or "link" (relations only). auto_detect: Find high-cohesion clusters automatically. cohesion_threshold: Minimum cohesion (0.0-1.0).
Returns: Dict with success, mode, consolidated clusters, and results.
Raises: ValueError: If cluster_id invalid or cohesion_threshold out of range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | preview | |
| cluster_id | No | ||
| auto_detect | No | ||
| cohesion_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||