Controls which (if any) tool is called by the model.
none means the model will not call any tool and instead generates a message.
auto means the model can pick between generating a message or calling one or
more tools.
required means the model must call one or more tools.
Constrains the tools available to the model to a pre-defined set.
Constrains the tools available to the model to a pre-defined set.
auto allows the model to pick from among the allowed tools and generate a
message.
required requires the model to call one or more of the allowed tools.
Indicates that the model should use a built-in tool to generate a response. Learn more about built-in tools.
The type of hosted tool the model should to use. Learn more about built-in tools.
Allowed values are:
file_searchweb_search_previewcomputercomputer_use_previewcomputer_usecode_interpreterimage_generationUse this option to force the model to call a specific function.
Use this option to force the model to call a specific tool on a remote MCP server.
Use this option to force the model to call a specific custom tool.