UNPKG

@mastra/core

Version:
16 lines • 1.02 kB
import type { MastraDBMessage } from '../state/types.js'; export declare function getUnavailableAttachmentUrls(message: MastraDBMessage): string[]; export declare function withUnavailableAttachmentUrls(metadata: Record<string, unknown> | undefined, urls: Iterable<string>): Record<string, unknown>; export declare function unavailableAttachmentPlaceholder(name: string): string; /** * Returns a copy of a user message with the attachments it recorded as unavailable * replaced by a placeholder text part, so they are neither fetched nor sent. The record * is per message: another message carrying the same URL is downloaded as usual. */ export declare function withUnavailableAttachmentPlaceholders(message: MastraDBMessage): MastraDBMessage; /** * Recordable (non-data) URLs of a stored message's file parts and attachments, * normalized like the prompt's asset URLs. */ export declare function getMessageAttachmentUrls(message: MastraDBMessage): string[]; //# sourceMappingURL=unavailable-attachments.d.ts.map