Function: lastSentence()
lastSentence(
text,sentences):string|undefined
Defined in: packages/agentos/src/io/hearing/transcribePieces.ts:142
The last sentence of a text, or undefined.
Parameters
text
string
The text to read.
sentences
(text) => readonly object[]
The caller's sentence spans, as in TranscribePiecesOptions.
Returns
string | undefined
The text of the last span, trimmed; the whole text, trimmed, when sentences answers no span; undefined
when that is empty.