Skip to main content
Add tool definitions to the tools array, validate model-generated arguments, and execute the function in your application. The two OpenAI-style protocols use different tool shapes:
Do not change only the endpoint and keep the other protocol’s tool shape.
Treat tool arguments as untrusted input. Enforce authorization and schema validation before execution.
Tool-call support varies by model. Confirm capability with the selected model before production use.
Last modified on August 12, 2026