Packages@robojs/ai
TokenLedgerHooks
Interface: TokenLedgerHooks
Optional hook callbacks invoked during ledger operations.
Properties
| Property | Type | Description |
|---|---|---|
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. |
