How do AI agents learn?