The linked GitHub article above describes syntax for fine tuning Mistral for function calling.
Here is an example of data prepared for fine tuning Llama for function calling...
https://huggingface.co/datasets/mzbac/function-calling-llama...
I'm unaware of any comprehensive guides - we're still in the wild west.