Split agent model to magi.agent