Intelligence · function
noteAbort
Record an abort, whatever caused it.
Explained in Agents and behaviour.
function noteAbort(usage: AiUsage): voidimport { noteAbort } from '@driftengine/ai';Parameters
| Parameter | Type | Description |
|---|---|---|
usage | AiUsage |
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.