Improving Small-Scale Large Language Models Function Calling for Reasoning Tasks