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. Must be a valid UUID registered via
record_message.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.
Example
Raises
AuthenticationError: when the API key is missing or invalid.NetworkError: when the SDK cannot reach Synap.