Moving AB while avoiding/flee from a target

I just started experimenting on Astar. I checked samples and forum but couldnt find what I’m really looking for.

I have 2 agents, One of the agents basically tries to catch the other agent which basic AB works. The other one tries to reach a destination meanwhile avoiding/fleeing from the other agent.

Is there a way to like combine multiple path graphs or like cross them to find the optimal path?