[ai] move behavitor from actor to agent class.

Change-Id: I4f79430a5562669c03b87dd97d0dc9fb1bb995c8