Intelligence · function

noteAbort

Record an abort, whatever caused it.

Explained in Agents and behaviour.

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

Parameters

ParameterTypeDescription
usageAiUsage

In depth

Counted where the session aborts rather than where the done event arrives. Reading it off the event double-counts every abort the session also has a reason for, and an aborted request produces a done and a decision — one abort, two places that could increment.