Agent Armor API Reference
    Preparing search index...

    Interface MLDownloadConfig

    Options controlling how the ML model is downloaded on first use.

    interface MLDownloadConfig {
        onProgress?: (bytesReceived: number, totalBytes: number) => void;
        retries?: number;
        timeoutMs?: number;
    }
    Index
    onProgress?: (bytesReceived: number, totalBytes: number) => void

    Progress callback

    retries?: number

    Number of retry attempts (default: 2)

    timeoutMs?: number

    Download timeout in ms (default: 120_000)