How to use optuna or pbt to tune hyperparameters in rl_games

I want to automatically tune hyperparameters to enhance the performance of the model. However, the hyperparameters of the model are defined in xml. This makes me unable to use hyperparameter tuning libraries such as tune, optuna, pbt, etc. What can I do to tune the hyperparameters?