Skip to main content

Function: reportTimedTextBudget()

reportTimedTextBudget(t, scope, id, cumulativeMicro): Promise<void>

Defined in: packages/agentos/src/safety/runtime/TimedTextBudget.ts:73

Records the session's cumulative text cost against the current part. Reports use the one serialized text lane; renewal first drains its in-flight request. A total at or below the recorded one changes nothing.

Parameters​

t​

CreditTransaction

scope​

string

id​

string

cumulativeMicro​

number

Returns​

Promise<void>

Throws​

For a total that is not a whole number, or a larger total after settlement.