Skip to content

cayu.snapshots.AgentSnapshotNode

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

from cayu.snapshots import AgentSnapshotNode

One strict content-addressed node in an AgentSnapshot Merkle DAG.

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
record_type Literal['cayu.agent-snapshot-node'] AGENT_SNAPSHOT_NODE_RECORD_TYPE
schema_version Literal[1] AGENT_SNAPSHOT_NODE_SCHEMA_VERSION
node_kind AgentSnapshotNodeKind required
schema_id StrictStr Field(max_length=256)
payload dict[str, object] required
children tuple[AgentSnapshotNodeChild, ...] ()
digest StrictStr required
AgentSnapshotNode.validate_schema_id(value: str, info) -> str
AgentSnapshotNode.validate_payload(value: object) -> dict[str, object]
AgentSnapshotNode.validate_children_array(value: object) -> object
AgentSnapshotNode.validate_digest(value: str, info) -> str
AgentSnapshotNode.validate_envelope() -> AgentSnapshotNode
AgentSnapshotNode.identity_material() -> dict[str, object]
AgentSnapshotNode.create(*, node_kind: AgentSnapshotNodeKind, schema_id: str, payload: dict[str, object], children: Iterable[AgentSnapshotNodeChild]=()) -> AgentSnapshotNode

Release source · Runtime guarantees · Capability guides