UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

8 lines • 461 B
/** * Split `text` into messages of at most `maxLength` characters, cutting where a reader would: at a * paragraph break, else a line break, else the end of a sentence, else a space — and only when * none of those falls past the first third of the window, mid-word. Whitespace at the cut is dropped; * empty pieces are never returned. */ export declare function splitMessage(text: string, maxLength: number): string[]; //# sourceMappingURL=split.d.ts.map