7. $x \in R$, find the range of $y=\frac{x^{2}-x+1}{x^{2}+x+1}$.

Translate the above text into English, please keep the original text's line breaks and format, and output the translation result directly.
(Answer: $\frac{1}{3} \leqslant y$ $\leqslant 3)$