How would I approach a K9 sidekick

I don’t even know how to approach having a sidekick. One that attacks and searches for pickups like food.

Hi man
its a big work of A.I. , and , blackboards and actors ,
or blueprints

here a video about a ai, pass from Behaviour A (patrol) to B (charge player)
You just need more and more things

Thanks. I will look into it!