agents model calls api for all pages