The Agent Model of AI