UNPKG

@xynehq/jaf

Version:

Juspay Agent Framework - A purely functional agent framework with immutable state and composable tools

30 lines 967 B
import type { Attachment } from '../core/types.js'; export declare function makeImageAttachment(params: { data?: Buffer | string; url?: string; mimeType?: string; name?: string; }): Attachment; export declare function makeFileAttachment(params: { data?: Buffer | string; url?: string; mimeType?: string; name?: string; format?: string; }): Attachment; export declare function makeDocumentAttachment(params: { data?: Buffer | string; url?: string; mimeType?: string; name?: string; format?: string; }): Attachment; export declare function validateAttachment(att: Attachment): void; export declare function assertNonEmptyAttachment(att: Attachment): void; export declare const ATTACHMENT_LIMITS: { readonly MAX_SIZE: number; readonly MAX_FILENAME_LENGTH: 255; readonly ALLOWED_IMAGE_MIME_TYPES: string[]; readonly ALLOWED_DOCUMENT_MIME_TYPES: string[]; }; //# sourceMappingURL=attachments.d.ts.map