UNPKG

@promptbook/remote-server

Version:

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

16 lines (15 loc) 813 B
import type { ChatAttachment, ResolveChatAttachmentOptions } from '../chatAttachments'; /** * Appends attachment metadata and inline attachment content to message content. * * The helper never throws because attachment downloads are best-effort and should * not block chat requests. * * @param {string} messageContent - The original message content. * @param {ReadonlyArray<ChatAttachment>} attachments - The attachments to append. * @param {ResolveChatAttachmentOptions} options - Options for resolution. * @returns {Promise<string>} The updated message content. * * @public exported from `@promptbook/core` */ export declare function appendChatAttachmentContextWithContent(messageContent: string, attachments: ReadonlyArray<ChatAttachment>, options?: ResolveChatAttachmentOptions): Promise<string>;