Menu

Tool Calls

Last updated

The AI Gateway supports OpenAI-compatible function calling, allowing models to call tools and functions. This follows the same specification as the OpenAI Function Calling API.

Controlling tool selection: By default, is set to , allowing the model to decide when to use tools. You can also:

  • Set to to disable tool calls
  • Force a specific tool with:

When the model makes tool calls, the response includes tool call information:


Was this helpful?

supported.