AI Agents and AI Assistants: A Contrast in Function