Find, in radians, the general solution of the equation
$$\cos \left( \frac { x } { 2 } + \frac { \pi } { 3 } \right) = \frac { 1 } { \sqrt { 2 } }$$
giving your answer in terms of \(\pi\).
Hence find the smallest positive value of \(x\) which satisfies this equation.