agent query updated