7 months old

Can a 7 month old just have either breastmilk/ formula? or do you also have to give them baby food?? Please no judgement our pedi hasn't really talked about it.