llmwire - v2.2.0
    Preparing search index...

    Class AIFactory

    Hierarchy (View Summary)

    Index
    • One answer, with retries and fallback.

      A retryable failure (rate limit, overload, network, timeout) is retried with backoff, honouring Retry-After; anything else moves straight to the next fallback provider. Never throws for a provider failure: the result carries success: false and a classified errorInfo.

      Parameters

      Returns Promise<AIResponse>

    • The same call as [process], streamed.

      Retry and fallback apply only until the first chunk arrives: by then the caller has usually shown part of an answer, and restarting on another provider would splice two different answers together. A failure after that is thrown from the iterator as an AIError.

      Parameters

      Returns AsyncGenerator<AIStreamChunk, void, void>

    • Test each registered provider; returns map of providerId -> ok.

      Returns Promise<Record<string, boolean>>