cayu.snapshots.AgentSnapshotMaterializationRequest
Part of cayu.snapshots.base. Read the Python API overview and install the required extra.
from cayu.snapshots import AgentSnapshotMaterializationRequestBases: _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 |
|---|---|---|
access |
AgentSnapshotAccess |
required |
candidate_id |
StrictStr |
Field(max_length=256) |
trial_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) |
validate_state_partition_fingerprint (method)
Section titled “validate_state_partition_fingerprint (method)”AgentSnapshotMaterializationRequest.validate_state_partition_fingerprint(value: str | None, info) -> str | Nonevalidate_identity (method)
Section titled “validate_identity (method)”AgentSnapshotMaterializationRequest.validate_identity(value: str, info) -> strsnapshot_fingerprint (property)
Section titled “snapshot_fingerprint (property)”AgentSnapshotMaterializationRequest.snapshot_fingerprint() -> strderive_state_scope_id (method)
Section titled “derive_state_scope_id (method)”AgentSnapshotMaterializationRequest.derive_state_scope_id(*, snapshot_fingerprint: str, candidate_id: str, trial_id: str, state_mode: AgentSnapshotTrialStateMode, state_partition_fingerprint: str | None=None) -> strstate_scope_id (property)
Section titled “state_scope_id (property)”AgentSnapshotMaterializationRequest.state_scope_id() -> str