Using Verse to change teams through UI.

agent type is also a player type so you should be able to just pass the player:
Team2.ChangeTeam(Message.Player)