Types of AI Agents: Understanding Their Roles, Structures, and Applications