Bluestep JS Documentation
    Preparing search index...

    Class AiCallException

    Thrown by B.ai.call and AiAgent.sendMessage when the provider could not be reached or answered with an error, after the retry policy gave up. code says which; status and retryAfterMillis are present when the provider supplied them. A refusal, a token cap or an iteration cap is not an exception: those return a result whose outcome says what happened.

    Index
    code: "RATE_LIMITED" | "PROVIDER_ERROR" | "CIRCUIT_OPEN" | "TIMEOUT"

    Why the call failed: "RATE_LIMITED", "PROVIDER_ERROR", "CIRCUIT_OPEN" or "TIMEOUT".

    retryAfterMillis: number

    How long the provider asked the caller to wait before trying again, in milliseconds, or null when it did not say.

    status: number

    The HTTP status the provider answered with, or null when the failure happened before any answer arrived (a timeout, a connection failure, an open breaker).