The models you set up for Chat mode will be used with Agent mode if the model supports tool calling. The recommended models and how to set them up can be found here.