It depends on what you need. There are no predefined rules. Agile promote easy documentation for requirements. However, it is recommended that you document the piece of software that you create (user story) according to your specific needs.
That is why I like the concept of "definition done."
In your definition, you can indicate that you need good written technical documentation about the functional structure that you create, including why you choose both ...
It is for you.
The strength of flexibility lies in the fact that you can significantly reduce the amount of waste.
user333306
source share