UNPKG

@mastra/core

Version:
19 lines • 945 B
import type { MessageList } from '../../agent/message-list/index.js'; import type { IMastraLogger } from '../../logger/index.js'; import type { MastraMemory } from '../../memory/index.js'; /** * Persists the attachments a prompt build found unavailable onto their stored user * messages, so later turns render the same placeholder without fetching them again. * * The record is merged onto the freshly loaded row, so its parts and other metadata * (e.g. OM seal markers) are kept. Messages not stored yet * already carry the record in memory and are saved with it. Best effort: a failure * only means the next turn tries the download once more. */ export declare function persistUnavailableAttachments({ messageList, memory, readOnly, logger, }: { messageList: MessageList; memory?: MastraMemory; readOnly?: boolean; logger?: IMastraLogger; }): Promise<void>; //# sourceMappingURL=persist-unavailable-attachments.d.ts.map