ContextSnapshot#
Restore model context and preserve immutable original messages. See the guide.
- class zett_agent.extensions.persistence.ContextSnapshot(*, id, session_id, version, compacted_message, compacted_through_sequence, created_at, updated_at)[source]#
One immutable checkpoint representing a compacted Raw Log prefix.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
id (str)
session_id (str)
version (int)
compacted_message (CompactedMessage)
compacted_through_sequence (int)
created_at (datetime)
updated_at (datetime)
Fields#
id(required)Stable snapshot identifier
session_id(required)Session whose context was compacted
version(required)Monotonically increasing snapshot version
compacted_message(required)Summary replacing the compacted Raw Log prefix
compacted_through_sequence(required)Last Raw Log sequence represented by the summary
created_at(required)UTC snapshot creation time
updated_at(required)UTC modification time; equal to creation time while immutable