cayu.snapshots.AgentSnapshotMaterializationProgress
Part of cayu.snapshots.base. Read the Python API overview and install the required extra.
from cayu.snapshots import AgentSnapshotMaterializationProgressDurable scope plan and compare-and-set component progress.
Bases: _SnapshotModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
record_type |
Literal['cayu.agent-snapshot-materialization-progress'] |
'cayu.agent-snapshot-materialization-progress' |
schema_version |
Literal[1] |
1 |
progress_id |
StrictStr |
required |
snapshot_fingerprint |
StrictStr |
required |
candidate_id |
StrictStr |
Field(max_length=256) |
state_scope_id |
StrictStr |
Field(max_length=256) |
state_mode |
AgentSnapshotTrialStateMode |
required |
state_partition_fingerprint |
StrictStr | None |
Field(default=None, exclude_if=lambda value: value is None) |
created_at |
datetime |
required |
operations |
tuple[AgentSnapshotMaterializationOperation, ...] |
required |
revision |
StrictInt |
Field(ge=0) |
active_operation_id |
StrictStr | None |
None |
components |
tuple[AgentSnapshotMaterializedComponent, ...] |
() |
materialization_fingerprint |
StrictStr | None |
None |
validate_fingerprints (method)
Section titled “validate_fingerprints (method)”AgentSnapshotMaterializationProgress.validate_fingerprints(value: str | None, info) -> str | Nonevalidate_identity (method)
Section titled “validate_identity (method)”AgentSnapshotMaterializationProgress.validate_identity(value: str, info) -> strvalidate_created_at (method)
Section titled “validate_created_at (method)”AgentSnapshotMaterializationProgress.validate_created_at(value: datetime) -> datetimevalidate_progress (method)
Section titled “validate_progress (method)”AgentSnapshotMaterializationProgress.validate_progress() -> AgentSnapshotMaterializationProgressidentity_material (method)
Section titled “identity_material (method)”AgentSnapshotMaterializationProgress.identity_material() -> dict[str, object]create (method)
Section titled “create (method)”AgentSnapshotMaterializationProgress.create(*, request: AgentSnapshotMaterializationRequest, created_at: datetime, components: Iterable[AgentSnapshotComponentRef]) -> AgentSnapshotMaterializationProgress