An Agentic Framework for Autonomous Metamaterial Modeling and Inverse Design