Let $L_1,\dotsc,L_n/K$ be finite separable field extensions. Then the compositum extension $L:=L_1\cdot\dotsb\cdot L_n/K$ is also finite and separable. Thus by the primitive element theorem, there are $\theta_i$ and $\theta$ in some fixed algebraic closure $\overline{K}$ of $K$ such that $L_i=K(\theta_i)$ and $L=K(\theta)$.
Suppose the $f_i(x)$ are the minimal polynomials of the $\theta_i$ over $K$, so that $L_i\cong K[x]/\langle f_i(x)\rangle$. Assuming that the $f_i$ are known, is there an algorithm to compute a generating polynomial for $L/K$, i.e. an irreducible polynomial $f\in K[x]$ so that $L=L_1\cdot\dotsb\cdot L_n\cong K[x]/\langle f(x)\rangle$, and $f$ can be computed from the $f_i$ in some way?
After some searching, I think the answer is related to the resultant $$\operatorname{Res}_y(f_i(y),f_j(x-y)),$$
which is mentioned in section 2 of [1] and section 3.2 of [2]; [1] states that the above resultant does the trick when $n=2$ (albeit without a formal proof), while [2] explains that the resultant has roots which are precisely the sums of a root of $f_i$ and a root of $f_j$ (not hard to see), but I don't see when we get irreducibility.
[1] Awtrey, C., Cesarski, T., & Jakes, P. (2017). Determining Galois Groups of Reducible Polynomials Via Discriminants and Linear Resolvents. JP Journal of Algebra, Number Theory and Applications, 39(5), 685–702.
[2] Soicher, L. (1981). The Computation of Galois Groups [Master’s Thesis, Concordia University]. https://spectrum.library.concordia.ca/id/eprint/4916/1/MK49693.pdf