Text this: Physics instrument design with reinforcement learning