This feature suggests users a context-based reply that can save you time while using the app. The feature is similar to what you could experience in the Gmail app for example.
Smart Compose can be also disabled in settings in the "Suggestions in chat" section. The feature is available on Pixel phones.
Status: Rollout