import { ProviderTurnBudget } from "./provider-turn-budget.js";
export function buildReplayProviderTurnBudget(input) {
    return new ProviderTurnBudget({
        enabled: input.enabled,
        max: input.profile
            ? input.maxProviderTurnsForProfile(input.profile)
            : input.defaultMaxProviderTurns,
        used: input.providerTurnCount ?? 0,
    });
}
//# sourceMappingURL=provider-replay-budget.js.map