UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

12 lines (11 loc) 545 B
import type { ChatAttachment } from '../chatAttachments'; /** * Appends attachment metadata context to message content so chat models can see uploaded file URLs. * * @param {string} messageContent - The original message content. * @param {ReadonlyArray<ChatAttachment>} attachments - The attachments to append. * @returns {string} The updated message content. * * @public exported from `@promptbook/core` */ export declare function appendChatAttachmentContext(messageContent: string, attachments: ReadonlyArray<ChatAttachment>): string;