Adjoints to functors from categories of algebras