LogoRobo.js
Packages@robojs/ai

TokenLedgerHooks

Interface: TokenLedgerHooks

Optional hook callbacks invoked during ledger operations.

Properties

PropertyTypeDescription
onLimitReached?(payload: UsageLimitEvent) => void | Promise<void>Called when usage breaches a configured limit.
onRecorded?(payload: UsageRecordedEvent) => void | Promise<void>Called after usage is recorded and aggregates are updated.

On this page