agent: handle number of responses in agent and make a decision on finalizing keys