PARACOSM AGENTOS | API Reference v0.9.1035
Home Simulation API Docs GitHub npm
Home Simulation API Docs GitHub npm AgentOS Discord
paracosm - v0.9.1035
    Preparing search index...

    Interface WorldModelSnapshot

    Serializable bundle that captures everything needed to reconstruct an equivalent WorldModel at a specific turn. Round-trips through JSON.stringify + JSON.parse without data loss.

    Produced by WorldModel.snapshot (live run) or implicitly via WorldModel.forkFromArtifact (disk-persisted run that was created with captureSnapshots: true).

    interface WorldModelSnapshot {
        kernel: KernelSnapshot;
        parentRunId?: string;
        snapshotVersion: 1;
    }
    Index
    kernel: KernelSnapshot

    Kernel state at capture time.

    parentRunId?: string

    Run-id the snapshot was captured from, when available. Threaded into RunArtifact.metadata.forkedFrom.parentRunId on the child run so fork chains reconstruct from stored artifacts.

    snapshotVersion: 1

    Format discriminator; bumped when the shape changes.