AuditSink#

class scikitplot.agent.AuditSink[source]#

Where audit records go. Subclasses implement write.

digest_at(run_id, seq)[source]#

Return the digest of record seq of run_id, or None.

None means the sink holds no such record, or cannot tell.

Parameters:
Return type:

str | None

head(run_id)[source]#

Return {"seq", "digest"} of the last record of run_id.

None means the sink holds no record of the run, or cannot tell (the default: a sink that only writes). The agent uses it to refuse a run id already used, and at resume to compare the trail with the saved state.

Parameters:

run_id (str)

Return type:

dict[str, Any] | None

write(record)[source]#

Append one record; raise if it could not be kept.

Parameters:

record (Mapping[str, Any])

Return type:

None