Intelligence · function

notePreemption

Record that the abort being taken is a preemption.

Explained in Agents and behaviour.

function notePreemption(usage: AiUsage): void
import { notePreemption } from '@driftengine/ai';

Parameters

ParameterTypeDescription
usageAiUsage

In depth

Only the narrow counter. noteAbort moves the broad one, so a preemption increments both by going through both — and neither function has to know what the other did.