AI agents decision making and problem solving