Learning Generalized Models by Interrogating Black-Box Autonomous Agents