compact to poll for completion before calling get_compacted.
The SDK checks its in-process anticipation cache first. If a compaction_update bundle has been pushed for this conversation, the call returns status="completed" immediately without a network round-trip.
Parameters
The conversation to inspect. Must be a valid UUID registered via
record_message.Returns
ACompactionStatusResponse describing the current state.
Echo of the supplied conversation id.
One of
"none", "in_progress", "completed", or "failed".Identifier of the latest compaction run, when one exists.
When the latest compaction completed.
Ratio of compacted-to-raw token count for the latest run. Lower values indicate more aggressive compression.
Quality score for the latest compaction (0.0-1.0). Reflects how well the compacted summary preserves the original conversation’s information.
For
status="in_progress", an estimated number of seconds until completion.Failure reason when
status="failed".Version number of the latest compaction. Increments each time a new run completes.
When the latest compaction run was started.
Example
Raises
AuthenticationError: when the API key is missing or invalid.NetworkError: when the SDK cannot reach Synap.