Member Junction
    Preparing search index...

    A file artifact that may be attached natively to a prompt when the resolved LLM driver supports the MIME type.

    interface NativeFileInput {
        Base64Content: string;
        MimeType: string;
        Name: string;
        SizeBytes: number;
        TextContent?: string;
    }
    Index

    Properties

    Base64Content: string

    Base64-encoded file content (or data-URL)

    MimeType: string

    MIME type (e.g. 'application/pdf', 'image/png')

    Name: string

    Display name of the artifact (used in logging)

    SizeBytes: number

    File size in bytes — used by the resolver for limit checks

    TextContent?: string

    Pre-extracted text content for fallback when the driver doesn't support native file input. Populated eagerly by ArtifactToolManager so the Prompts package doesn't need binary parsing dependencies (pdfjs, etc.). When present and the driver rejects the file, this text is injected as a plain text block in the user message instead.