Skip to main content

Type Alias: TranscribePiece()

TranscribePiece = (piece, request) => Promise<PieceTranscript>

Defined in: packages/agentos/src/io/hearing/transcribePieces.ts:44

The caller's transcription of one piece. request.prompt is the context to hand the provider, when there is any; request.attempt is 1 for a piece's first try; request.signal is the job's own. A call that throws is made again while the piece has tries left and the job's signal has not aborted.

Parameters​

piece​

PieceInput

request​

attempt​

number

prompt?​

string

signal?​

AbortSignal

Returns​

Promise<PieceTranscript>