What an agent actually does

An agent is software that calls a model in a loop, with tools, until a job is done or it gives up.