Predictions Random Forest in xgboost Regression


I would like to train a Random Forest algorithm and use the predictions as a basis to create an xgboost model, but I don’t know how. I have tried to look for it in the documentation, but I have not found anything.

The problem is for regression.