Intelligence · interface

AiPreemption

An observation that ended the current intent early.

Explained in Agents and behaviour.

interface AiPreemption
import type { AiPreemption } from '@driftengine/ai';

In depth

Recorded for the same reason a command is: it cannot be recomputed. The floor is deterministic and replays by rerunning, but an observation is external input — the same class of thing as a keypress — and nothing in the simulation derives it. Without this, a replay reruns the floor past the moment it was interrupted and diverges from there on.

Properties

NameTypeDescription
kindreadonly'preemption'
agentIdreadonlystring
acceptedAtTickreadonlynumber