Well if you look there are some examples in the file, but it's really just barebones stuff. It's more ai managment than ai. It's meant to support quick addition of different bot types.
You start a bot type by calling %bot.setType(%type); so you could do %bot.setType("follow");
Then to interact with it, you make methods such as AIPlayer::CALLBACK_TYPE(%bot, %args) so the follow bot has AIPlayer::onClick_Follow(%bot, %player) This allows you to easily know when the bot is clicked or not, I also added other callbacks but it might be missing some since this isn't complete. There is also an onTick callback but I'm not sure if that's done yet.