sword duel boss ai

i’m making a action game and for some bosses i want them to fight you with strategy instead of just swinging their sword around i want them to do stuff like Block,walk around you(to anticipate what attack your gonna do) and parry(rarely though)