ChatGPT · Schema

ResponseToolChoice

AgentsArtificial IntelligenceChatGPTEmbeddingsFine-TuningGPT-4GPT-5Language ModelOpenAIReal-Time

Properties

Name Type Description
type string The type of tool to force.
name string The name of the function to call. Required when type is function.
View JSON Schema on GitHub

JSON Schema

chatgpt-responses-response-tool-choice-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ResponseToolChoice",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of tool to force."
    },
    "name": {
      "type": "string",
      "description": "The name of the function to call. Required when type\nis function.\n"
    }
  }
}