If you're at the point where the editor is saying, "You need to be agented before we can move forward," then yes, I would put that in the query letter. (But maybe just ask the editor if you can negotiate with a literary attorney rather than using an agent.)
If you just met the editor at a conference and they requested the manuscript, and it's currently sitting in your slush pile, save that for the phone call.