added: Agent.query