Skip to main content

Function: createTimedTextBudget()

createTimedTextBudget(t, input): Promise<void>

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

Starts a session's text funding before its first text request; the caller holds the supplier scope and customer locks in its existing transaction, where it also made initialReservationId.

Parameters​

t​

CreditTransaction

input​

at​

number

budgetId​

string

initialReservationId​

string

partMicro​

number

scopeId​

string

sliceMs​

number

Returns​

Promise<void>

Throws​

For a quantity that is not a whole number, a zero slice or part, a missing reservation id, a store without documents, or a budget id already used in the scope.