export const AGENT_LOOP_MAX_TOKENS = 32_000;
export function boundedMaxTokens(model, requested = AGENT_LOOP_MAX_TOKENS) {
    return typeof model.maxTokens === "number" && model.maxTokens > 0
        ? Math.min(model.maxTokens, requested)
        : requested;
}
