import { providerSupportsMaxTurns } from '../infra/providers/provider-capabilities.js';
export function buildMaxTurnsOption(provider, resolvedProvider, maxTurns) {
    const effectiveProvider = resolvedProvider ?? provider;
    if (providerSupportsMaxTurns(effectiveProvider) === false) {
        return {};
    }
    return { maxTurns };
}
//# sourceMappingURL=provider-call-options.js.map