A Compositional Semantic Structure for Multi-Agent Systems Dynamics