Update signature of agent_query() to match the rest of the world.