How Agents Are Used In Ai