@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
26 lines (25 loc) • 929 B
TypeScript
import type { ChatMessage, ChatMessageReplyingTo } from '../types/ChatMessage';
/**
* Lightweight message-like shape accepted by reply-preview text helpers.
*
* @private helper contract for chat reply previews
*/
type ChatMessageReplyPreviewSource = Pick<ChatMessage, 'content' | 'attachments'> & {
readonly attachmentNames?: ChatMessageReplyingTo['attachmentNames'];
};
/**
* Optional settings for reply-preview text generation.
*
* @private helper contract for chat reply previews
*/
type ResolveChatMessageReplyPreviewTextOptions = {
readonly maxLength?: number;
readonly emptyLabel?: string;
};
/**
* Resolves one compact plain-text preview for reply UI surfaces and prompt context.
*
* @private helper for chat reply previews
*/
export declare function resolveChatMessageReplyPreviewText(source: ChatMessageReplyPreviewSource, options?: ResolveChatMessageReplyPreviewTextOptions): string;
export {};