Skip to main content

Function: renewTimedTextBudget()

renewTimedTextBudget(t, input, reserve): Promise<TimedTextBudgetView>

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

Reserves the next part once its slice boundary has passed. The host proves current wall-time allowance and team membership (allowed) and reserves through its native spend adapter (reserve); a renewal inside the current slice answers the current view without reserving again.

Parameters​

t​

CreditTransaction

input​

allowed​

boolean

at​

number

budgetId​

string

cumulativeMicro​

number

scopeId​

string

reserve​

(micro, expiresAtMs) => Promise<string>

Returns​

Promise<TimedTextBudgetView>

Throws​

When the allowance is refused, before the first boundary, after settlement, or when reserve answers an empty or already used reservation id.