Interface DecisionModelFallbackAdapterOptions

Configures the decision model order and retry policy for each model.

interface DecisionModelFallbackAdapterOptions {
    attemptTimeoutMs?: number;
    maxRetryPerModel?: number;
    models: readonly llm.DecisionModel<DecisionModelCallbacks>[];
    retryIntervalMs?: number;
}

Properties

attemptTimeoutMs?: number

Timeout for each model attempt in milliseconds. Defaults to 1000.

maxRetryPerModel?: number

Retries on one model before moving to the next. Defaults to 0.

Models in priority order. Each model must support the decisions sent to the adapter.

retryIntervalMs?: number

Delay between retries on one model in milliseconds. Defaults to 500.