Documentation Index
Fetch the complete documentation index at: https://docs.maximem.ai/llms.txt
Use this file to discover all available pages before exploring further.
compaction_id and an in_progress status. Use get_compaction_status to poll for completion, then get_compacted to retrieve the resulting summary.
If a previous compacted summary already exists, it is returned on the trigger response as previous_context so you have something usable while the new compaction runs.
Parameters
The conversation to compact.
Override the compaction strategy. One of:
"aggressive"— maximum compression, shortest output"balanced"— middle-ground compression"conservative"— preserve more detail"adaptive"— let Synap pick based on conversation shape
Backward-compatible alias for
strategy. Prefer strategy in new code.Override the target token budget for the compacted output.
Compact even if the conversation has not crossed the automatic threshold.
Returns
ACompactionTriggerResponse describing the in-flight job.
Identifier for this compaction run.
Echo of the supplied conversation id.
Initial status, typically
"in_progress".How compaction was triggered (e.g.,
"manual_api").When the run started.
Rough ETA in seconds.
Previously compacted context, if any. Usable while the new run finishes.
Age of
previous_context in seconds.Identifier of the previous compaction run.
Example
Raises
AuthenticationError— when the API key is missing or invalid.NetworkError— when the SDK cannot reach Synap.