Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 483 Bytes

truncateToCompleteSentence.md

File metadata and controls

21 lines (11 loc) · 483 Bytes

@elizaos/core v0.25.8 / truncateToCompleteSentence

Function: truncateToCompleteSentence()

truncateToCompleteSentence(text, maxLength): string

Truncate text to fit within the character limit, ensuring it ends at a complete sentence.

Parameters

text: string

maxLength: number

Returns

string

Defined in

packages/core/src/parsing.ts:317