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.
None if no compacted summary exists yet — call compact first in that case.
When a specific version is requested the local cache is bypassed and the value is fetched fresh from Synap.
Parameters
The conversation whose compacted summary you want to read.
Specific compaction version. Defaults to the latest. When supplied, the SDK always fetches from the cloud and skips the local cache.
Output format:
"structured"— structured fields (facts,decisions,preferences,current_state)"narrative"— prose summary"injection"— preformatted for direct prompt injection
Returns
ACompactionResponse if a compacted summary exists, otherwise None.
The formatted compacted context.
Token count of the original conversation.
Token count after compaction.
Compaction ratio (compacted / original).
Strategy actually applied (e.g.,
adaptive, balanced).Identifier of the compaction run that produced this summary.
Strategy used for this compaction.
Quality validation score, when available.
Whether the validation check passed.
Extracted facts (structured format).
Extracted decisions (structured format).
Extracted preferences (structured format).
Snapshot of current conversation state (structured format).
Optional warning when validation flagged a concern.
Correlation id, source (
cache or cloud), TTL, and retrieval timestamp.Example
Raises
AuthenticationError— when the API key is missing or invalid.NetworkError— when the SDK cannot reach Synap.