How to invoke function in model fine tuning?

In model fine-tuning, how can I represent the need to call a function in JSONL format? Are we limited to using only the roles system, user, and assistant?