Intelligence · function

chargeUsage

Tokens only. Who aborted, and why, is something the session knows and an event does not.

Explained in Agents and behaviour.

function chargeUsage(usage: AiUsage, event: AiEvent): void
import { chargeUsage } from '@driftengine/ai';

Parameters

ParameterTypeDescription
usageAiUsage
eventAiEvent