Documentation
    Preparing search index...

    Interface LlmServiceOptions

    Options for createLlmService.

    interface LlmServiceOptions {
        createHandle?: () => string;
        deadlineMs?: number;
        host: LlmConnectionHost;
        maxConcurrentPerWindow?: number;
        maxHandlesPerWindow?: number;
        maxRequestChars?: number;
    }
    Index

    Properties

    createHandle?: () => string

    Opaque handle factory; defaults to crypto.randomUUID with a counter fallback.

    deadlineMs?: number

    Generation deadline including consent wait, in milliseconds. Default 120000.

    Connection, consent and provider adapter.

    maxConcurrentPerWindow?: number

    Active generations allowed per window. Default 4.

    maxHandlesPerWindow?: number

    Live model handles kept per window. Default 32. Selecting beyond the bound evicts the least recently used handle, which then answers selection-expired.

    maxRequestChars?: number

    Serialized request size ceiling in UTF-16 code units. Default 4 MiB.