Regulating the Agency of LLM-based Agents