Implementing pathfinding algorithms in an AI agent?

im completely lost on this so any help would be much appreciated