agent class output func