The Economic Behavior of AI Agents: Rationality and Reasoning in Large Language Models