There's no way to directly set the yaw or pitch. Sadly.
You can use pitch() on the bot's client, if it has an AIClient.