You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const result =awaitWorldModel.fromScenario(marsScenario).simulate({
57
+
actor: aria,
58
+
keyPersonnel: [],
59
59
maxTurns: 6,
60
60
seed: 950,
61
61
onEvent: e=>console.log(e.type, e.data?.title),
@@ -69,17 +69,21 @@ Or run the hosted demo at [paracosm.agentos.sh/sim](https://paracosm.agentos.sh/
69
69
70
70
## The universal result contract
71
71
72
-
Every `runSimulation()` call returns a Zod-validated `RunArtifact` exported from the `paracosm/schema` subpath. One shape covers three simulation modes, discriminated on `metadata.mode`:
72
+
Every `WorldModel.simulate()` call returns a Zod-validated `RunArtifact` exported from the `paracosm/schema` subpath. One shape covers three simulation modes, discriminated on `metadata.mode`:
73
73
74
74
-`turn-loop`: civilization sims (paracosm's built-in mode). Populates `trajectory.timepoints[]` and `decisions[]` with per-turn specialist notes.
75
75
-`batch-trajectory`: digital-twin simulations. Labeled timepoints over a horizon, populated by external LangGraph-style executors.
76
76
-`batch-point`: one-shot forecasts. Overview and risk flags only, no trajectory.
-[`compileScenario`](/paracosm/engine/compiler/functions/compileScenario): turns a scenario draft plus optional source grounding into a runnable `ScenarioPackage`
-`run` / `runMany`: prompt, URL, or precompiled scenario quickstarts from the root export
279
+
-[`compileScenario`](/paracosm/paracosm/compiler/functions/compileScenario): turns a scenario draft plus optional source grounding into a runnable `ScenarioPackage`
0 commit comments