Function: reserveTranscriptionCredit()
reserveTranscriptionCredit(
t,input):Promise<number>
Defined in: packages/agentos/src/safety/runtime/TranscriptionCredit.ts:299
Reserve up to the available promotion; zero is valid because gross spend authorization is separate. The full gross estimate of a Deepgram entry stays outstanding until the reservation's final report, whatever was reserved.
Parameters
t
input
ReserveTranscriptionCreditInput
Returns
Promise<number>
The promotional micro-dollars held; a retry with identical inputs answers the first reservation's amount.
Throws
For a retry with other inputs (reservation conflict).
Throws
For a malformed entry or identity, or an amount or estimate that is not a positive whole number.