Skip to content

@genetic-assembly/sdk / Class: ArchiveReader ​

Data-only snapshot: opening it never imports or evaluates application code.

Constructors ​

Constructor ​

ts
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 ​

ts
readonly readOnly: true = true;

Methods ​

candidates() ​

ts
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() ​

ts
dataset(id): ReplayDataset;

Parameters ​

id ​

string

Returns ​

ReplayDataset


events() ​

ts
events(ownerId, after?): object[];

Parameters ​

ownerId ​

string

after? ​

number = 0

Returns ​

object[]


generations() ​

ts
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() ​

ts
history(ownerId?): object[];

Parameters ​

ownerId? ​

string

Returns ​

object[]


snapshot() ​

ts
snapshot(): object;

Returns ​

object

createdAt ​
ts
createdAt: string;
datasets ​
ts
datasets: Record<string, {
  manifestKey: string;
  resources: Record<string, string>;
  runHash: string;
}>;
evaluations ​
ts
evaluations: object[];
format ​
ts
format: "genetic-assembly-archive";
materializations ​
ts
materializations: object[];
provenance ​
ts
provenance: object;
provenance.engine ​
ts
engine: "rust-wasm" | "rust-native";
provenance.execution ​
ts
execution: "local" | "service";
provenance.modelCodeIncluded ​
ts
modelCodeIncluded: false;
provenance.resumable ​
ts
resumable: false;
provenance.runtimeIdentity? ​
ts
optional runtimeIdentity?: string;
runs ​
ts
runs: object[];
studies ​
ts
studies: object[];
studyIds? ​
ts
optional studyIds?: string[];
version ​
ts
version: 2;

Genetic Assembly · Deterministic NSGA-II optimization