Understanding agency, normativity and reasoning

It is uncontested to ascribe some capacity for agency to human beings. However, what precisely does agency involve? Can it also be ascribed to animals, plants or machines? Does it depend on a metaphysical notion of free will? Furthermore, agency and reasoning seem connected in interesting ways. Some form of agency seems required for reasoning, and some capacity for reasoning seems required in order to be an agent. Also, both seem to involve sensitivity to norms, raising the question to what extent there is common ground in the kinds of normativity at stake.