How do you give AI players a PlayerState?

I am also pretty keen on understanding the same. Any help on this would be great ?