The form of the question determines the form of the outcome, even if the answer is the same. Asking the same question in a different way should result in the adherence to the form of the question.
2+2 is 4
2 plus 2 is 4
4=2+2
4
Having the LLM pass the input to a tool (python) will result in deterministic output.
2+2 is 4
2 plus 2 is 4
4=2+2
4
Having the LLM pass the input to a tool (python) will result in deterministic output.