If something acts only due to external forces - a rock rolling down a hill, or a river flowing around some rocks, we say it doesn't have agency.
If something partially acts based on processing/decision making processes running inside its own boundary - like us, or a roomba, we say it has agency.
So it comes down to processing and actions as a result of processing. Doesn't matter whether its deterministic or not.
* = (probably; ultimately it doesnt matter much whether its deterministic or partially random, either way theres no way of finding out the future other than waiting for it to arrive, due to sensitive dependence on initial conditions)