"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompositeAgentProvider = void 0;
class CompositeAgentProvider {
    primary;
    fallback;
    constructor(primary, fallback) {
        this.primary = primary;
        this.fallback = fallback;
    }
    load() {
        const data = this.primary.load();
        return data.length ? data : this.fallback.load();
    }
}
exports.CompositeAgentProvider = CompositeAgentProvider;
