@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
11 lines • 526 B
TypeScript
import type { Attachment } from '@ai-sdk/ui-utils-v5';
import type { FilePart, ImagePart, TextPart } from '../../../_types/@internal_ai-sdk-v4/dist/index.js';
type ContentPart = TextPart | ImagePart | FilePart;
/**
* Converts a list of attachments to a list of content parts
* for consumption by `ai/core` functions.
* Currently only supports images and text attachments.
*/
export declare function attachmentsToParts(attachments: Attachment[]): ContentPart[];
export {};
//# sourceMappingURL=attachments-to-parts.d.ts.map