Delayed mediational processes can generate agency
By telling ourselves we've made choices, we make ourselves agents. Free will occurs when decision-making processes are delayed to allow more alternatives to be tested. Systems capable of delayed decision making have as much free will/agency as we do.
Hence any computer system with those procesess can be said to have agency.
Marvin Minsky (1986), as articulated by Joseph Rychlak (1991).