@genetic-assembly/sdk / Class: ArchiveReader
Data-only snapshot: opening it never imports or evaluates application code.
Constructors
Constructor
new ArchiveReader(data): ArchiveReader;Parameters
data
createdAt
string = ...
datasets
Record<string, { manifestKey: string; resources: Record<string, string>; runHash: string; }> = ...
evaluations
object[] = ...
format
"genetic-assembly-archive" = ...
materializations
object[] = ...
provenance
{ engine: "rust-wasm" | "rust-native"; execution: "local" | "service"; modelCodeIncluded: false; resumable: false; runtimeIdentity?: string; } = ...
provenance.engine
"rust-wasm" | "rust-native" = ...
provenance.execution
"local" | "service" = ...
provenance.modelCodeIncluded
false = ...
provenance.resumable
false = ...
provenance.runtimeIdentity?
string = ...
runs
object[] = ...
studies
object[] = ...
studyIds?
string[] = ...
version
2 = ...
Returns
ArchiveReader
Properties
readOnly
readonly readOnly: true = true;Methods
candidates()
candidates(ownerId, options?): HistoryPage<{
candidateId: string;
constraints: Record<string, number>;
decisions: Record<string, string | number | boolean>;
feasible: boolean;
metrics: Record<string, number>;
phase: "baseline" | "search" | "validation" | "replay";
seedCount: number;
}>;Parameters
ownerId
string
options?
PageOptions = {}
Returns
HistoryPage<{ candidateId: string; constraints: Record<string, number>; decisions: Record<string, string | number | boolean>; feasible: boolean; metrics: Record<string, number>; phase: "baseline" | "search" | "validation" | "replay"; seedCount: number; }>
dataset()
dataset(id): ReplayDataset;Parameters
id
string
Returns
events()
events(ownerId, after?): object[];Parameters
ownerId
string
after?
number = 0
Returns
object[]
generations()
generations(ownerId, options?): HistoryPage<{
discoveredParetoCandidateIds: string[];
evaluatedCandidateIds: string[];
generation: number;
paretoCandidateIds: string[];
population: object[];
summary: {
[key: string]: unknown;
evaluations: number;
feasible_count: number;
generation: number;
infeasible_count: number;
pareto_size: number;
};
}>;Parameters
ownerId
string
options?
PageOptions = {}
Returns
HistoryPage<{ discoveredParetoCandidateIds: string[]; evaluatedCandidateIds: string[]; generation: number; paretoCandidateIds: string[]; population: object[]; summary: { [key: string]: unknown; evaluations: number; feasible_count: number; generation: number; infeasible_count: number; pareto_size: number; }; }>
history()
history(ownerId?): object[];Parameters
ownerId?
string
Returns
object[]
snapshot()
snapshot(): object;Returns
object
createdAt
createdAt: string;datasets
datasets: Record<string, {
manifestKey: string;
resources: Record<string, string>;
runHash: string;
}>;evaluations
evaluations: object[];format
format: "genetic-assembly-archive";materializations
materializations: object[];provenance
provenance: object;provenance.engine
engine: "rust-wasm" | "rust-native";provenance.execution
execution: "local" | "service";provenance.modelCodeIncluded
modelCodeIncluded: false;provenance.resumable
resumable: false;provenance.runtimeIdentity?
optional runtimeIdentity?: string;runs
runs: object[];studies
studies: object[];studyIds?
optional studyIds?: string[];version
version: 2;