cayu.snapshots.AgentSnapshotTrialBinding
Part of cayu.snapshots.base. Read the Python API overview and install the required extra.
from cayu.snapshots import AgentSnapshotTrialBindingBases: _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-trial'] |
'cayu.agent-snapshot-trial' |
schema_version |
Literal[1] |
1 |
fingerprint |
StrictStr |
required |
snapshot_fingerprint |
StrictStr |
required |
materialization_fingerprint |
StrictStr |
required |
candidate_id |
StrictStr |
Field(max_length=256) |
case_id |
StrictStr |
Field(max_length=256) |
trial_id |
StrictStr |
Field(max_length=256) |
evaluator_fingerprint |
StrictStr |
required |
memory_overlay_fingerprint |
StrictStr | None |
None |
workspace_overlay_fingerprint |
StrictStr | None |
None |
created_at |
datetime |
required |
validate_fingerprints (method)
Section titled “validate_fingerprints (method)”AgentSnapshotTrialBinding.validate_fingerprints(value: str | None, info) -> str | Nonevalidate_identity (method)
Section titled “validate_identity (method)”AgentSnapshotTrialBinding.validate_identity(value: str, info) -> strvalidate_created_at (method)
Section titled “validate_created_at (method)”AgentSnapshotTrialBinding.validate_created_at(value: datetime) -> datetimevalidate_fingerprint_matches (method)
Section titled “validate_fingerprint_matches (method)”AgentSnapshotTrialBinding.validate_fingerprint_matches() -> AgentSnapshotTrialBindingidentity_material (method)
Section titled “identity_material (method)”AgentSnapshotTrialBinding.identity_material() -> dict[str, object]create (method)
Section titled “create (method)”AgentSnapshotTrialBinding.create(*, materialization: AgentSnapshotMaterialization, case_id: str, trial_id: str, evaluator_fingerprint: str, created_at: datetime) -> AgentSnapshotTrialBindingsession_metadata (method)
Section titled “session_metadata (method)”AgentSnapshotTrialBinding.session_metadata() -> dict[str, object]Return bounded machine-readable lineage for an ordinary Cayu run.