Interface: TranscribePiecesOptions
Defined in: packages/agentos/src/io/hearing/transcribePieces.ts:63
How the job runs.
Properties
attempts?
optionalattempts: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?
optionalinFlight: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()?
optionalonPiece: (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
Returns
void | Promise<void>
previousText?
optionalpreviousText: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) => readonlyobject[]
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?
optionalsignal: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.