If you were going to store a user agent in a database, how large would you accomdate for?
I found this technet article which recommends keeping UA under 200. It does
I'll give you the standard answer:
Take the largest possible value you can possibly imagine it being, double it, and that's your answer.