I would define it as
An agent is an autonomous or semi-autonomous software system that perceives its environment, makes decisions, and takes actions to achieve specific goals. It can interact with other agents or systems, adapt its behavior over time, and perform tasks or generate content with varying levels of independence.