Skip to main content

Interface: TranscribePiecesOptions

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

How the job runs.

Properties​

attempts?​

optional attempts: number

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

Tries a piece gets in all. A fraction is rounded down; a non-finite value takes the default.

Default​

3

inFlight?​

optional inFlight: number

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

Pieces sent at once, 1 to 4. A fraction is rounded down; a non-finite value takes the default.

Default​

1

onPiece()?​

optional onPiece: (outcome) => void | Promise<void>

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

Called serially with each piece, in order, as it and every piece before it finish, even during a source read.

Parameters​

outcome​

PieceOutcome

Returns​

void | Promise<void>


previousText?​

optional previousText: string

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

The text before the first piece given, when a run starts again from a piece.


sentences()​

sentences: (text) => readonly object[]

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

The sentence spans of a text; the prompt is the last of them.

Parameters​

text​

string

Returns​

readonly object[]


signal?​

optional signal: AbortSignal

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

Ends the job: no further try is made, and the job rejects with the signal's reason. Every transcribe call is given it.