Probabilistic Modeling of Latent Agentic Substructures in Deep Neural Networks