refactor: remove deployment-backed agent API (#2422)