Trigger manual consolidation
POST /api/v1/ai/memory/consolidate
POST
/api/v1/ai/memory/consolidate
Trigger manual memory crystal consolidation.
Runs near-duplicate consolidation followed by inactivity pruning (mirrors the weekly cadence worker) for the caller’s tenant only.
Args: user: Authenticated user context. session: Request-scoped DB session (committed on success).
Returns: Consolidation result with real merge/prune counts.
Authorizations
Responses
200
Successful Response
Result of a memory consolidation run.
object
crystals_archived
required
integer
crystals_merged
required
integer
crystals_pruned
required
integer
duration_ms
required
integer
merge_errors
integer