Integrating a ML model into another ML model

This is a hypothetical scenario, with real implications.I have a ML model, say A with multiple features. Few of the features are the outputs generated by another ML model, say B. What are the best practices and methods to integrate B into A so that it works accurately without causing any data leakages?

The best practice is to use Tensorflow extended and the MLops Specialization here introduces that!

Move to AI Question Category. Cheers