The world’s most valuable company is chasing Intel and Apple as it tries to bring A.I. agents to laptops and desktops.