@promptbook/remote-client
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
13 lines (12 loc) • 500 B
TypeScript
import type { ChatAttachment } from '../chatAttachments';
/**
* Normalizes a potentially invalid attachments payload from the client request.
*
* Invalid items are skipped and duplicate URLs are de-duplicated.
*
* @param {unknown} rawAttachments - The raw attachments to normalize.
* @returns {Array<ChatAttachment>} The normalized attachments.
*
* @public exported from `@promptbook/core`
*/
export declare function normalizeChatAttachments(rawAttachments: unknown): Array<ChatAttachment>;