
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given the function $f(x)=\sin (\pi x + \theta) (0 < \theta < 2\pi)$, find the values of $T$ and $\theta$ if the function has a minimum positive period $T$ and it reaches its maximum value when $x=2$.

Present the answer in LaTex format: \boxed{Your answer}
user