Allies, including Letitia James, the state attorney general, are talking to her about a run against Eric Adams and Andrew M.