Skip to content

cayu.snapshots.AgentSnapshotProtection

Part of cayu.snapshots.base. Read the Python API overview and install the required extra.

from cayu.snapshots import AgentSnapshotProtection

Bases: _SnapshotModel.

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
protection_id StrictStr required
operation_id StrictStr Field(max_length=256)
access AgentSnapshotAccess required
kind AgentSnapshotProtectionKind required
owner StrictStr Field(max_length=256)
reason StrictStr Field(max_length=256)
AgentSnapshotProtection.validate_protection_id(value: str, info) -> str
AgentSnapshotProtection.validate_text(value: str, info) -> str
AgentSnapshotProtection.validate_protection() -> AgentSnapshotProtection
AgentSnapshotProtection.identity_material() -> dict[str, object]
AgentSnapshotProtection.create(*, operation_id: str, access: AgentSnapshotAccess, kind: AgentSnapshotProtectionKind, owner: str, reason: str) -> AgentSnapshotProtection

Release source · Runtime guarantees · Capability guides