Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
23 lines
784 B
Plaintext
23 lines
784 B
Plaintext
/**
|
|
* Default maximum size in bytes for GenAI messages.
|
|
* Messages exceeding this limit will be truncated.
|
|
*/
|
|
export declare const DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT = 20000;
|
|
/**
|
|
* Truncate GenAI messages using the default byte limit.
|
|
*
|
|
* Convenience wrapper around `truncateMessagesByBytes` with the default limit.
|
|
*
|
|
* @param messages - Array of messages to truncate
|
|
* @returns Truncated array of messages
|
|
*/
|
|
export declare function truncateGenAiMessages(messages: unknown[]): unknown[];
|
|
/**
|
|
* Truncate GenAI string input using the default byte limit.
|
|
*
|
|
* @param input - The string to truncate
|
|
* @returns Truncated string
|
|
*/
|
|
export declare function truncateGenAiStringInput(input: string): string;
|
|
//# sourceMappingURL=messageTruncation.d.ts.map
|