UNPKG

@promptbook/remote-server

Version:

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

67 lines (66 loc) 2.69 kB
/** * Registry of all built-in chat save plugins * * @public exported from `@promptbook/components` */ export declare const CHAT_SAVE_FORMATS: readonly [{ readonly formatName: "json"; readonly label: "Json"; readonly getContent: ({ messages }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "application/json"; readonly fileExtension: "json"; }, { readonly formatName: "txt"; readonly label: "Plain Text"; readonly getContent: ({ messages }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "text/plain"; readonly fileExtension: "txt"; }, { readonly formatName: "md"; readonly label: "Markdown"; readonly getContent: ({ messages, participants }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "text/markdown"; readonly fileExtension: "md"; }, { readonly formatName: "html"; readonly label: "HTML"; readonly getContent: ({ title, messages, participants }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "text/html"; readonly fileExtension: "html"; }, { readonly formatName: "jsx"; readonly label: "React"; readonly getContent: (chatExportData: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => string; readonly mimeType: "application/javascript"; readonly fileExtension: "jsx"; }, { readonly formatName: "pdf"; readonly label: "PDF"; readonly getContent: ({ title, messages, participants }: { readonly title: string; readonly messages: readonly import("../types/ChatMessage").ChatMessage[]; readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[]; }) => Uint8Array; readonly mimeType: "application/pdf"; readonly fileExtension: "pdf"; }];