tools array, validate model-generated arguments, and execute the function in your application. The two OpenAI-style protocols use different tool shapes:
Tool-call support varies by model. Confirm capability with the selected model before production use.