Skip to main content

Function: admitLowestCostTranscription()

admitLowestCostTranscription(t, input): Promise<TranscriptionAdmission>

Defined in: packages/agentos/src/safety/runtime/TranscriptionCredit.ts:357

Select and reserve in one transaction; callers persist their session before this transaction commits.

Parameters​

t​

CreditTransaction

input​

at​

number

availableVendors​

readonly ("openai" | "elevenlabs" | "deepgram")[]

creditVersion?​

string

entries​

readonly string[]

estimatedSeconds​

number

language?​

string | null

prices​

readonly SttPriceRow[]

reservationId​

string

scopeId​

string

Returns​

Promise<TranscriptionAdmission>

The selection and its reservation; a retry with identical inputs answers the stored admission.

Throws​

When no offered vendor is available, or for a retry with other inputs (admission conflict).